Help with generated SSL certificate


I have two droplets at digitalocean, the first is mail in a box ( and the second one is my web server (
I created A record with
curl -X PUT -d "x.x.x.x"
so that points to my web server machine.
No problems there, mail server works and I can reach web server at
(System Status Check says - Web has been disabled for this domain because you have set a custom DNS record, I guess it’s ok)

Is it possible to use ssl certificate generated with mail-in-a-box on nginx server on
I’ve created valid SSL certificates for both and when installing mail-in-a-box. (Although now Certificate Status for on TLS (SSL) Certificates says: The domain’s website is hosted elsewhere)

Should I copy ssl keys from /home/user-data/ssl to server in order to configure nginx:
server {
listen 443 ssl;
ssl_certificate /etc/ssl/your_domain.crt;
ssl_certificate_key /etc/ssl/your_domain.key;


Thank you.

Solved the problem by copying certificates from machine /home/user-data/ssl to machine /etc/nginx/ssl/

server {
  listen 80;
  listen 443 ssl;
  ssl_certificate        /etc/nginx/ssl/;
  ssl_certificate_key    /etc/nginx/ssl/ssl_private_key.pem; 

Will have to automate the process in future for the case when the cert. is renewed.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.