Skip to content

Instantly share code, notes, and snippets.

@krisleech
Created July 6, 2023 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krisleech/996e18e12b1510057d59c37c15077a31 to your computer and use it in GitHub Desktop.
Save krisleech/996e18e12b1510057d59c37c15077a31 to your computer and use it in GitHub Desktop.
Re-signing an expired certificate for publishing gems
$ gem build wisper.gemspec
Enter PEM pass phrase:
INFO:  Your certificate has expired, trying to re-sign it...
ERROR:  While executing gem ... (Gem::Security::Exception)
    certificate /CN=kris.leech\/DC=gmail\/DC=com not valid after 2020-10-15 18:13:45 UTC   
$ gem cert --re-sign -C gem-public_cert.pem -K ~/.ssh/gem-private_key.pem
$ gem cert --add gem-public_cert.pem
$ gem build wisper.gemspec
# try to install
$ gem install ./wisper-3.0.0.rc1.gem -P HighSecurity
$ gem push wisper-3.0.0.rc1.gem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment