Installing an ssl certificate in Heroku: Resolving trust chain… failed ! No certificate given.

I was installing a certificate in Heroku for my app, and when running the command:

heroku certs:add server.crt bundle.pem server.key --app myappname-production

I got this error message:

Resolving trust chain... failed !
No certificate given.

I got desperate until I read carefully, that the certificates, all of them:


have to include the first and last line:

first line:

end line:

If you do not copy those lines into the file (I received the certs via email, this is why I have to manually copy/paste, except for server.key that I generate from command line).

Hope it is a useful hint for you!!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s