How i can update ssl in aws ec2 docker installation?

I am running openEMR 7.0.1 in AWS ec2 inside docker. Now SSL seems to be expired. How can I update the SSL certificate ( Encrypt SSL Certificates)?.

Thank you!

hi @Hari_Khanal , checkout this thread

Thanks @stephenwaite . I did the following to renew SSL certificate:

  • Check your domain and email $DOMAIN and $EMAIL
  • run certbot renew inside docker . You will get a congratulation massage. Then run the following command in the terminal
rm -f /etc/ssl/certs/webserver.cert.pem
rm -f /etc/ssl/private/webserver.key.pem
ln -s /etc/letsencrypt/live/$DOMAIN/fullchain.pem /etc/ssl/certs/webserver.cert.pem
ln -s /etc/letsencrypt/live/$DOMAIN/privkey.pem /etc/ssl/private/webserver.key.pem
  • Exit from Docker.

  • Restart docker docker restart xx_openemr_1.

1 Like