Prereq on linux machine, where the domain name is mapped temporarily.
sudo apt-get update sudo apt-get install software-properties-common sudo add-apt-repository universe sudo add-apt-repository ppa:certbot/certbot sudo apt-get update sudo apt-get install certbot
sudo certbot certonly --standalone -d mysubdomain.mydomain.com
cd /etc/letsencrypt/live/mysubdomain.mydomain.com/. cd ../../archive/mysubdomain.mydomain.com/
chmod 777 *
After copying the same files to your windows machine you can generate pfx file by running below command from git bash window.
To copy file to your machine: scp azureuser@52.140.7.36:/home/azureuser/prodwindows.pfx .
openssl pkcs12 -export -out mysubdomain.mydomain.com.pfx -inkey /etc/letsencrypt/live/mysubdomain.myproduct.com/privkey.pem -in /etc/letsencrypt/live/mysubdomain.myproduct.com/fullchain.pem -password pass:yourpassword
fullchain1.pem --> prod.ma.crt
privkey1.pem --> prod.ma.key
privkey1.pem --> prod.ma.key
No comments:
Post a Comment