chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::Knife::SslFetch#normalize_cn
Convert the CN of a certificate into something that will work well as a filename. To do so, all `*` characters are converted to the string "wildcard" and then all characters other than alphanumeric and hypen characters are converted to underscores. NOTE: There is some confustion about what the CN will contain when using internationalized domain names. RFC 6125 mandates that the ascii representation be used, but it is not clear whether this is followed in practice. https://tools.ietf.org/html/rfc6125#section-6.4.2
Edit
git clone [email protected]:opscode/chef.git
cd chef
open knife/lib/chef/knife/ssl_fetch.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--Knife--SslFetch-normalize_cn-for-pr
# Commit to gitgit add knife/lib/chef/knife/ssl_fetch.rbgit commit -m "better docs for Chef::Knife::SslFetch#normalize_cn"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--Knife--SslFetch-normalize_cn-for-pr
hub pull-request
# Celebrate!