<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.apoyar.eu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=106.200.164.230</id>
	<title>Apoyar Wiki - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.apoyar.eu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=106.200.164.230"/>
	<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Special:Contributions/106.200.164.230"/>
	<updated>2026-07-21T15:04:12Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.apoyar.eu/index.php?title=Installing_SSL_Certificate_for_Website_on_Linux_%26_Windows&amp;diff=145</id>
		<title>Installing SSL Certificate for Website on Linux &amp; Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Installing_SSL_Certificate_for_Website_on_Linux_%26_Windows&amp;diff=145"/>
		<updated>2021-01-06T07:26:53Z</updated>

		<summary type="html">&lt;p&gt;106.200.164.230: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Installing SSL Certificate for Website on Linux &amp;amp; Windows&lt;br /&gt;
--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
For Linux&lt;br /&gt;
&lt;br /&gt;
Connect to server&lt;br /&gt;
&lt;br /&gt;
Go to below path&lt;br /&gt;
&lt;br /&gt;
•	cd /etc/nginx/sites-enabled&lt;br /&gt;
&lt;br /&gt;
Run below command there&lt;br /&gt;
&lt;br /&gt;
•	certbot certonly - - nginx&lt;br /&gt;
&lt;br /&gt;
It will show you all websites hosted on that server and ask to enter numbers according to the server for which certificate need to install&lt;br /&gt;
&lt;br /&gt;
Note - if you want to list domains to be renewed/added and there are some which you want to leave out, use a space separated list of the site numbers&lt;br /&gt;
&lt;br /&gt;
If you keep that blank and hit enter, then it will renew the existing certificate and create new one for those website, which don’t have it&lt;br /&gt;
&lt;br /&gt;
If you want to install for specific website only, then type according number and hit enter, after you hit enter it will ask you to expand, so just type e and press enter&lt;br /&gt;
&lt;br /&gt;
Then it will give you two options, select there second option (renew and replace) and hit enter&lt;br /&gt;
&lt;br /&gt;
It will generate certificate, we can see the generated certificate at below path&lt;br /&gt;
&lt;br /&gt;
•	cd /etc/letsencrypt/live&lt;br /&gt;
&lt;br /&gt;
For Windows&lt;br /&gt;
&lt;br /&gt;
Login to server using RDP&lt;br /&gt;
&lt;br /&gt;
Open command prompt as administrator&lt;br /&gt;
&lt;br /&gt;
Go to below path&lt;br /&gt;
&lt;br /&gt;
•	cd c:/certbot&lt;br /&gt;
&lt;br /&gt;
Run below command&lt;br /&gt;
&lt;br /&gt;
•	certbot certonly&lt;br /&gt;
&lt;br /&gt;
It will give you two options, select first option (Spin up temporary)&lt;br /&gt;
&lt;br /&gt;
Note – Stop the IIS service first&lt;br /&gt;
&lt;br /&gt;
Enter domain names and hit enter&lt;br /&gt;
&lt;br /&gt;
To convert crt and key to .pfx and generate certificate go to below path &lt;br /&gt;
&lt;br /&gt;
•	C:/programfiles/Git/usr/bin&lt;br /&gt;
&lt;br /&gt;
Run below command to generate certificate with appropriate information (fullchain and key file locations and names)&lt;br /&gt;
&lt;br /&gt;
openssl” pkcs12 -export -out *.pfx -inkey *.key -in *.crt&lt;br /&gt;
&lt;br /&gt;
For ex. -  openssl pkcs12 -export -out &amp;quot;C:\certbot\archive\support.apoyar.net\support.apoyar.net.pfx&amp;quot; -inkey &amp;quot;C:\certbot\archive\support.apoyar.net\privkey1.pem&amp;quot; -in &amp;quot;C:\Certbot\archive\support.apoyar.net\fullchain1.pem&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note – while executing the above command for generating certificate we have to use quotation for file locations (“”)&lt;br /&gt;
&lt;br /&gt;
Also, we can rename the fullchain.pem file to fullchain.crt, and if we double click it, we can see certificate details&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note- Start IIS service first&lt;br /&gt;
&lt;br /&gt;
Go to IIS (Internet Information Services)&lt;br /&gt;
&lt;br /&gt;
- click on NEPTUNE&lt;br /&gt;
&lt;br /&gt;
- server certificates &lt;br /&gt;
&lt;br /&gt;
– import&lt;br /&gt;
&lt;br /&gt;
New window will open, browse the certificate path and select certificate&lt;br /&gt;
&lt;br /&gt;
•	Enter password – ap0yar&lt;br /&gt;
&lt;br /&gt;
•	Check the box ( Allow certificate )&lt;br /&gt;
&lt;br /&gt;
Go to default web – Bindings – https – edit&lt;br /&gt;
&lt;br /&gt;
And select the according to the certificate (support.apoyar.net)&lt;br /&gt;
&lt;br /&gt;
Click Ok&lt;br /&gt;
&lt;br /&gt;
Then click YES for all popups&lt;br /&gt;
&lt;br /&gt;
Note – Sometimes error might come, so no need to worry... just click OK and continue&lt;br /&gt;
&lt;br /&gt;
Note – Default web is used to store settings/certificates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then go to Go to below path to add binding with command&lt;br /&gt;
&lt;br /&gt;
•	C:\Windows\System32\Inetsrv\&lt;br /&gt;
&lt;br /&gt;
Run below command with editing appropriate information&lt;br /&gt;
&lt;br /&gt;
appcmd set site /site.name:&amp;quot;MySite V2&amp;quot; /+bindings.[protocol=&#039;https&#039;,bindingInformation=&#039;*:443:sitev2.mysite.com&#039;]&lt;br /&gt;
For Ex. - appcmd set site /site.name:&amp;quot;devsupport&amp;quot; /+bindings.[protocol=&#039;https&#039;,bindingInformation=&#039;*:443:devsupportpod.apoyar.eu&#039;]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then we can check for certificates in IIS and we can verify browsing websites also.&lt;/div&gt;</summary>
		<author><name>106.200.164.230</name></author>
	</entry>
</feed>