This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
sysadmin:windows:windows_iis_install_configure_certbot [2021/03/01 22:17] vidyasb |
sysadmin:windows:windows_iis_install_configure_certbot [2021/03/02 15:08] (current) vidyasb |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Install & CertBot on Windows with IIS ====== | + | ====== Install & Configure |
[[https:// | [[https:// | ||
- | - Install [[https:// | + | - Download & Install [[https:// |
- | - Open MS-DOS command prompt in _Administrator_ | + | - Open MS-DOS command prompt in // |
- | Replace << | + | - HTTP |
- | Replace << | + | - DNS |
+ | For more details refer to [[https:// | ||
+ | </ | ||
+ | < | ||
+ | < | ||
</ | </ | ||
certbot certonly --manual --preferred-challenges dns --email "<< | certbot certonly --manual --preferred-challenges dns --email "<< | ||
</ | </ | ||
- | - Type **Y** at the following prompt:<WRAP center round alert 60%> | + | - Type //Y// and press //[ENTER]// key at the following prompt:<code>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
- | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | + | |
Would you be willing, once your first certificate is successfully issued, to | Would you be willing, once your first certificate is successfully issued, to | ||
share your email address with the Electronic Frontier Foundation, a founding | share your email address with the Electronic Frontier Foundation, a founding | ||
Line 18: | Line 21: | ||
EFF news, campaigns, and ways to support digital freedom. | EFF news, campaigns, and ways to support digital freedom. | ||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
- | (Y)es/ | + | (Y)es/(N)o: </code>You will see following output:< |
- | </WRAP>< | + | |
Performing the following challenges: | Performing the following challenges: | ||
dns-01 challenge for << | dns-01 challenge for << | ||
Line 28: | Line 30: | ||
your server, please ensure you're okay with that. | your server, please ensure you're okay with that. | ||
</ | </ | ||
- | - Type **Y** at the following prompt:<WRAP center round alert 60%> | + | - Type //Y// and press //[ENTER]// key at the following prompt:<code> |
Are you OK with your IP being logged? | Are you OK with your IP being logged? | ||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
(Y)es/ | (Y)es/ | ||
- | </WRAP>< | + | </code>You will see the following output:< |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
Please deploy a DNS TXT record under the name | Please deploy a DNS TXT record under the name | ||
Line 43: | Line 45: | ||
Press Enter to Continue | Press Enter to Continue | ||
</ | </ | ||
- | - Download | + | - Download |
+ | < | ||
+ | < | ||
+ | </ | ||
+ | - Select option to copy OpenSSL libraries to OpenSSL ///bin// folder | ||
+ | - In the MS-DOS command prompt window in Step 2 or a new MS-DOS command prompt window, run the following commands to create PFX file:< | ||
+ | [[https:// | ||
+ | </ | ||
+ | Replace << | ||
+ | </ | ||
+ | openssl pkcs12 -export -out " | ||
+ | </ | ||
+ | - Launch //Internet Information Services (IIS) Manager// from //Control Panel// → // | ||
+ | - Click on Server tree node underneath //Start Page// in the left-side navigation panel | ||
+ | - Click on //Server Certificates// | ||
+ | - Click on // | ||
+ | - Using //...// button next to // | ||
+ | - Enter the password entered in Step 2 in // | ||
+ | - Click //OK// to Import the certificate< | ||
+ | - Expand //> Sites// underneath the Server tree node in left-side navigation panel | ||
+ | - Click on the Site that has HTTPS binding to which the certificate needs to be assigned-to | ||
+ | - Click on // | ||
+ | - Select the HTTPS Binding and Click on //Edit...// or create a new binding (if not present) | ||
+ | - In the //SSL certificate:// |