0.0
No commit activity in last 3 years
No release in over 3 years
A gem that takes string input for X509 certificates and attempts to reformat them into a valid certificate.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 1.5
~> 0.6
~> 10.0
~> 3.1
~> 0.48
~> 0.8

Runtime

~> 2.1
 Project Readme

CertMunger Gem Version

Travis CI Dependency Status Test Coverage Code Climate Inline docs

A gem that takes string input for X509 certificates and attempts to reformat them into a valid certificate. This gem extends the core String class to add the .to_cert and .to_cert! methods through the CertMunger module.

Installation

Add this line to your application's Gemfile:

# Ruby 2.0+:
gem 'cert_munger', '~> 1.0'
# Ruby 1.9 support:
gem 'cert_munger', '~> 0.2'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cert_munger

Usage

# Use CertMunger on any string:
new_cert = "<invalidly formatted cert string>".to_cert

# Or a string read from a file (one or multiple lines):
bad_cert = File.read('malformed_cert_to_parse')
bad_cert.to_cert!

Contributing

  1. Fork it ( https://github.com/stevenhaddox/cert_munger/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Ensure your changes have tests
  4. Run the test suite (bundle exec rake)
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create a new Pull Request