Reputation: 1533
I do not have set and passphrase while creating certificate. And I have this error message then I try to install this certificate on heroku.
$ heroku certs:add server.crt server.key
Resolving trust chain... failed
> Key appears to be malformed, or is passphrase-protected.
Here is result content of the folder:
$ ls -l
total 24
-rw-r--r-- 1 dkaigorodov staff 2702 Apr 13 18:01 bundle.pem
-rw-r--r-- 1 dkaigorodov staff 1855 Apr 13 18:06 server.crt
-rw-r--r-- 1 dkaigorodov staff 1681 Apr 13 18:06 server.key
I bought certificate from http://dnsimple.com
Upvotes: 0
Views: 428
Reputation: 11
curl https://gist.github.com/rwdaigle/5503531/raw/bundle.pem > bundle.pem
$ heroku certs:add server.crt server.key
Upvotes: 1
Reputation: 1533
The problem was that I used Vim editor to save the certificates. I changed the editor, problem is solved.
Upvotes: 0
Reputation: 185
Try including the intermediate cert in the upload:
heroku certs:add server.crt bundle.pem server.key
Hope this helps!
Alex
Upvotes: 1