Add SSL certificate to a website
The entire process of adding an SSL certificate can be done in less than 10 minutes:
- Purchase a certificate (multi-year is preferred to avoid the hassle of renewing.
- Generate a a Certificate Signing Request (CSR)
- Request an SSL certificate from an issuing authority. The issuing authority sends an authorization request to the administrator of the domain in seconds, The admin authorizes the request.
- Downloading the SSL certificate.
- Installing the certificate.
The process to re-key SSL certification is almost identical to the above.
IONOS offers a free SSL certificate for each domain registered with them.
- Go to Secure Your Website with SSL Encryption
- Select domain
- Activate SSL Certificate and download the private key
- Menu > Domain and SSL
- Click a domain.
- Click SSL Certificate > Manage
- Create and Download the .PFX File (the downloaded private key is needed for this step, a new password is also needed. Remember this password).
- Go to IIS > Select Server > IIS > Server Certificate > Import... (on the right) > Select the .PFX file and enter password.
- IIS > Select website > Binding... (on the right) > Select https (if nonexistent, create it) > Edit... > Select the imported certificate.
Renew IONOS SSL certificate:
- Domains & SSL
- Select the domain
- SSL certificate > Manage
- Renew and get a .key file
- SSL Certificate Files > Download .PFX file. In this step, you need to open the private key file (.key) and copy its content to the box and enter a password and remember this password.
- Go to IIS > Select Server > IIS > Server Certificate > Import... (on the right) > Select the .PFX file and enter password.
- IIS > Select website > Binding... (on the right) > Select https (if nonexistent, create it) > Edit... > Select the imported certificate.
One can use the free Let's Encrypt. Certify the web is a great application to manage the certificates of Certify the web for different websites on a Windows server. If a regular SSL certificate is used, one needs to remember to remove the website from Certify the web. Otherwise Certify the web will update the website's certificate with one from Let's Encrypt automatically.
ZeroSSL renewal:
- Follow the default steps to generate .zip file containing domain.crt, bundle.crt, private.key
- Remove any passphrase from the private key:
openssl rsa -in yourdomain.key -out key_nopass.key
Verify it does not ask for passphrase (optional):
openssl rsa -check -in key_nopass.key - Create a Windows Server 2016–compatible PF
openssl pkcs12 -export ^
-out win2016.pfx ^
-inkey key_nopass.key ^
-in yourdomain.crt ^
-certfile ca_bundle.crt ^
-keypbe PBE-SHA1-3DES ^
-certpbe PBE-SHA1-3DES ^
-macalg SHA1X:
Verify it does not ask for passphrase (optional):
openssl pkcs12 -info -in win2016.pfx -nokeys - Import the PFX into Windows Server 2016
Open mmc → Add “Certificates” snap-in → Computer account → Local computer
Go to: Personal → Certificates
Right-click → All Tasks → Import
Select win2016.pfx
Enter the PFX password
Check “Mark this key as exportable”
Finish - Bind the certificate to the website.
ZeroSSL certificate renewal automation:
Setup Steps (High-Level)
Download
win-acmefor Windows Server 2016Install/Extract it
Extract to a folder like
C:\win-acme\
Run
wacs.exe(the client)Select “Create new certificate (full options)”
Choose your IIS site
Choose ZeroSSL ACME v2 as the provider
Enter your ZeroSSL API key when prompted
Automatic PFX creation
win-acmegenerates a Server 2016-compatible PFX automaticallyHandles private key / certificate / CA bundle correctly
Bind the certificate to IIS
win-acmecan automatically update your site’s HTTPS binding
Schedule automatic renewal
The installer creates a Task Scheduler job
Checks for expiring certificates and renews automatically