Installing SSL Certificate for Website on Linux & Windows: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 56: Line 56:
openssl” pkcs12 -export -out *.pfx -inkey *.key -in *.crt
openssl” pkcs12 -export -out *.pfx -inkey *.key -in *.crt


For ex. -  openssl pkcs12 -export -out "C:\certbot\archive\support.apoyar.net\support.apoyar.net.pfx" -inkey "C:\certbot\archive\support.apoyar.net\privkey1" -in "C:\Certbot\archive\support.apoyar.net\fullchain1.pem"
For ex. -  openssl pkcs12 -export -out "C:\certbot\archive\support.apoyar.net\support.apoyar.net.pfx" -inkey "C:\certbot\archive\support.apoyar.net\privkey1.pem" -in "C:\Certbot\archive\support.apoyar.net\fullchain1.pem"


Note – while executing above command for generating certificate we have to use quotation for file locations (“”)
Note – while executing the above command for generating certificate we have to use quotation for file locations (“”)


Also we can rename the fullchain.pem file to fullchain.crt, and if we double click it, we can see certificate details
Also, we can rename the fullchain.pem file to fullchain.crt, and if we double click it, we can see certificate details




Line 81: Line 81:
Go to default web – Bindings – https – edit
Go to default web – Bindings – https – edit


And select the according certificate (support.apoyar.net)
And select the according to the certificate (support.apoyar.net)


Click Ok
Click Ok
Line 87: Line 87:
Then click YES for all popups
Then click YES for all popups


Note – Sometimes error might comes, so no need to worry... just click OK and continue
Note – Sometimes error might come, so no need to worry... just click OK and continue


Note – Default web is used to store settings/certificates
Note – Default web is used to store settings/certificates
Line 100: Line 100:
appcmd set site /site.name:"MySite V2" /+bindings.[protocol='https',bindingInformation='*:443:sitev2.mysite.com']
appcmd set site /site.name:"MySite V2" /+bindings.[protocol='https',bindingInformation='*:443:sitev2.mysite.com']
For Ex. - appcmd set site /site.name:"devsupport" /+bindings.[protocol='https',bindingInformation='*:443:devsupportpod.apoyar.eu']
For Ex. - appcmd set site /site.name:"devsupport" /+bindings.[protocol='https',bindingInformation='*:443:devsupportpod.apoyar.eu']
Then we can check for certificate in IIS and we can verify browsing website also.
 
 
Then we can check for certificates in IIS and we can verify browsing websites also.
Anonymous user