Question

Manual SSL set-up

I have been given some SSL certificates to migrate to a new host (on Digital Ocean/Server Pilot).

I am setting up a ssl.conf as discussed in this thread -> https://www.digitalocean.com/community/questions/install-ssl-certificate-manually-on-serverpilot-2

However, two questions:

  1. how do I test SSL for a staging server with a live domain from my local machine (as you can by updating host files to test launches on non-https)? Are the mechanics for SSL/HTTPS the same?

  2. Assuming can get working, how do I specify multiple certificates for multiple domains within the same account? eg for a multi-site set-up that is pointing multiple domains to the same path (but obviously will have different certificates/keys for each domain)?

Your help appreciated.

Regards,

Cole


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

1. how do I test SSL for a staging server with a live domain from my local machine (as you can by updating host files to test launches on non-https)? Are the mechanics for SSL/HTTPS the same? I am not sure what you mean by this, but you can setup a local webserver with the SSL certificate on it and use like a local domain for it yes.

2. Assuming can get working, how do I specify multiple certificates for multiple domains within the same account? eg for a multi-site set-up that is pointing multiple domains to the same path (but obviously will have different certificates/keys for each domain)? You can setup multiple vhosts for you webserver. In each VHOST you can use a different SSL certificate. This configuration depends on the webserver you are using.