How to add SSL certificate (with files .ca-bundle, .crt and .p7b) to a droplet?

Posted November 9, 2020 698 views
NginxUbuntuSecurityInitial Server Setup

I purchased an SSL certificate from Sectigo and want to use it in my droplet.
I received three files from Sectigo:

When I try to add them to my droplet from Account -> Settings -> Security -> Add Certificate
Digital Ocean asks for the following:

  • certificate
  • private key
  • chain certificate

I tried to put *.crt file content in the certificate, *.p7b file in private key, and *.ca-bundle in chain certificate, but I got the error message “Invalid certificate data: The provided certificate or private key is not a valid PEM block”

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!