En primer lugar, necesitas obtener un certificado para tu servidor Ubuntu.
Utilizo Apache como servidor web.
Vamos a utilizar el proveedor de certificados gratuito letsencrypt.
Te recomiendo que instales los paquetes desde el PPA porque están más actualizados.
Go to this link:
https://launchpad.net/~certbot/+archive/ubuntu/certbot
And follow the instructions.
This is what you should do:
add-apt-repository ppa:certbot/certbot apt-get update apt-get install python-certbot-apache
Then install the certificate for your domain
certbot --apache -d domain.com,www.domain.com
To list all the certificate that you have on your server use this command
certbot certificates
The files should be located in this folder
/etc/letsencrypt/live
If you need to upgrade the certbot ppa, then use this command
apt-get install --only-upgrade certbot