Here's a quick overview of the steps required.
Build a certificate and private key pair
$ cd /to/where/you/wish/to/keep/your/cert_and_keyTwo files are generated from this: gem-private_key.pem & gem-public_cert.pem.
$ gem cert --build gemmaster@example.com
Ensure you keep gem-private_key.pem somewhere safe that only you have access to.
Modify your build specification
Add the following spec to your existing gem's gemspec or to the relevant Rakefile ("s" is your Gem::Specification instance):
$ s.signing_key = 'gem-private_key.pem'Rebuild your package and you're done!
$ s.cert_chain = ['gem-public_cert.pem']
No comments:
Post a Comment