You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ho to sign with CA Certificate (Not self-signed)? #5106
I think you can follow guide at https://guides.rubygems.org/security/#building-gems, but instead of generating self signed cert (step 1 and partly step 2) just provide your exisitng signing_key in gemspec (last part of step 2).
Activity
simi commentedon Nov 28, 2021
Hello @gkerner.
I think you can follow guide at https://guides.rubygems.org/security/#building-gems, but instead of generating self signed cert (step 1 and partly step 2) just provide your exisitng signing_key in gemspec (last part of step 2).
gkerner commentedon Nov 28, 2021
Thanks for your reply. It's just that the private key isn't extractable (hsm protected) and cannot be converted to pem format.
simi commentedon Nov 28, 2021
Key is passed to
OpenSSL::PKey::RSA.newat https://github.com/rubygems/rubygems/blob/e7e1487459eb8b96d6adfeb2dcc434121f10bed9/lib/rubygems/security/signer.rb#L87 so anythingOpenSSL::PKey::RSA.newaccepts can be used.Do you have any idea (example) how to use HSM with Ruby OpenSSL bindings?