Skip to content

Instantly share code, notes, and snippets.

@manishjaingit
Created October 6, 2018 19:20
Show Gist options
  • Save manishjaingit/ada225b27dcca4fb037cf429962d85cd to your computer and use it in GitHub Desktop.
Save manishjaingit/ada225b27dcca4fb037cf429962d85cd to your computer and use it in GitHub Desktop.
setup lets encrypt in Ubuntu 16.04 on apache
### To apply ssl certificate free via lets encrypt in apache ###
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-apache
sudo certbot --apache -d lifeconnect.app
sudo certbot --apache -d lifeconnect.app -d www.lifeconnect.app
sudo certbot renew --dry-run
@manishjaingit
Copy link
Author

and for apache if you are generating csr

by

sudo openssl req -new -newkey rsa:2048 -nodes -keyout *.domain.com.key -out *.domain.com.csr

so on common name: you should write *.domain.com

@manishjaingit
Copy link
Author

manishjaingit commented Feb 5, 2019

you generally gets this files from comodo or ssl seller.

AddTrustExternalCARoot.crt
SectigoRSADomainValidationSecureServerCA.crt
STAR_domainname_org.crt
USERTrustRSAAddTrustCA.crt

and for generating ca-bundle file
AddTrustExternalCARoot.crt>>USERTrustRSAAddTrustCA.crt>>SectigoRSADomainValidationSecureServerCA.crt

You can check this link
https://support.comodo.com/index.php?/Knowledgebase/Article/View/1145/1/how-do-i-make-my-own-bundle-file-from-crt-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment