Heroku No valid, non-passphrase-protected keys given error -
i have files:
addtrustexternalcaroot.crt star_mydomain_com.crt trustedsecurecertificateauthority5.crt usertrustrsaaddtrustca.crt domain.key
domain.key passphrase protected , generated during creation of csr files (files required .crt files certificate provider. tried:
heroku certs:update certs/star_mydomain_com.crt certs/domain.key
but following error:
! no valid, non-passphrase-protected keys given.
how can generate valid crt/key heroku? (i tried other crt files domain key not valid domain certificates.
domain.key generated following command:
openssl genrsa -des3 -out domain.key 2048
here's how remove passphrase private key:
openssl rsa -in certs/domain.key -out certs/domain-nopassphrase.key
you'll need enter current passphrase on private key. if prompted passphrase on new key, not enter 1 (just press enter).
you can update ssl endpoint using cert + new key:
heroku certs:update certs/*.crt certs/domain-nopassphrase.key
Comments
Post a Comment