ssl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ssl [2016/06/09 16:30] – [Apache] alex | ssl [2017/10/26 18:59] (current) – [Standalone (non-HTTP)] mb | ||
---|---|---|---|
Line 8: | Line 8: | ||
/ | / | ||
+-- example.com | +-- example.com | ||
- | | + | | \-- .well-known -> . |
+ | \-- www.example.com -> example.com | ||
</ | </ | ||
Line 21: | Line 22: | ||
Finally run: | Finally run: | ||
< | < | ||
- | sudo certbot certonly --webroot -w / | + | sudo certbot certonly --webroot -w / |
</ | </ | ||
- | ''' | + | **N.B.** you can append many more sub-domains on there if you want to use use multiple domains in the same certificate |
- | Now go back to your Apache configuration section and add a new ''< | + | Now go back to your ''< |
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | Now slip into in the following lines into the block its-self: | ||
< | < | ||
SSLCertificateFile / | SSLCertificateFile / | ||
Line 32: | Line 38: | ||
SSLCertificateChainFile / | SSLCertificateChainFile / | ||
Include / | Include / | ||
+ | |||
+ | RewriteEngine on | ||
+ | RewriteCond %{HTTPS} off | ||
+ | RewriteRule . https:// | ||
</ | </ | ||
- | Finally, do one last reload and you should have a secure site. | + | Finally, do one last reload and you should have a secure site (with your non-secure site redirecting to the secure one). |
+ | |||
+ | ===== Standalone (non-HTTP) ===== | ||
+ | |||
+ | Simply a case of running: | ||
+ | |||
+ | < | ||
+ | sudo certbot certonly --standalone --standalone-supported-challenges http-01 -d marmot.wormnet.eu -d imap.wormnet.eu -d smtp.wormnet.eu | ||
+ | </ | ||
+ | |||
+ | You will need to shut down any webserver listening on '' | ||
+ | |||
+ | |||
+ | Then you can tie in the certs at: | ||
+ | |||
+ | * **''/ | ||
+ | * **''/ | ||
+ | * **''/ |
ssl.1465489831.txt.gz · Last modified: 2016/06/09 16:30 by alex