Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howto:hiawatha [2016/02/28 20:49] – Added example configuration for Synchronet web server The5thD | howto:hiawatha [2016/05/28 11:11] (current) – Updated "To Do" section. The5thD | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== How to use Hiawatha as a reverse proxy server for Synchronet ====== | ====== How to use Hiawatha as a reverse proxy server for Synchronet ====== | ||
- | Synchronet 3.16c and prior versions do not support SSL connections. Synchronet CVS subsequent to 3.16c have an implementation of SSL, but you may either have problems with it working correctly or you may simply | + | Synchronet 3.16c and prior versions do not support SSL connections. Synchronet CVS subsequent to 3.16c have an implementation of SSL, but you may either have problems with it working correctly or you may simply |
====== Installation of Hiawatha ====== | ====== Installation of Hiawatha ====== | ||
Line 57: | Line 57: | ||
In the default configuration, | In the default configuration, | ||
- | In our example, we are setting the HTTPS port for Synchronet' | + | In our example, we are setting the HTTPS port for Synchronet' |
+ | ====== Obtaining a free SSL certificate from Let's Encrypt ====== | ||
+ | |||
+ | This section is optional because a sysop may obtain an SSL certificate from any number of certificate authorities. However, Let's Encrypt is an attractive option for sysops who want a free option to quickly and easily add encryption to their website without triggering a security warning in a user's browser as would be the case with a self-signed certificate. | ||
+ | |||
+ | Using Let's Encrypt is fairly simple and straightforward. The official documentation of Let's Encrypt can be found at https:// | ||
+ | |||
+ | In our example, we'll assume that your Synchronet installation' | ||
+ | |||
+ | < | ||
+ | letsencrypt certonly --webroot -w / | ||
+ | </ | ||
+ | |||
+ | Let's Encrypt will install its data in / | ||
+ | |||
+ | ====== Installing the Let's Encrypt SSL certificate into Hiawatha ====== | ||
+ | |||
+ | Once you've obtained a Let's Encrypt SSL certificate, | ||
+ | |||
+ | < | ||
+ | cat / | ||
+ | </ | ||
+ | |||
+ | Then set the correct permissions so that the certificate can only be read by root. | ||
+ | |||
+ | < | ||
+ | chmod 400 / | ||
+ | </ | ||
+ | |||
+ | Edit / | ||
+ | |||
+ | < | ||
+ | # BINDING SETTINGS | ||
+ | # A binding is where a client can connect to. | ||
+ | # | ||
+ | Binding { | ||
+ | Port = 80 | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | } | ||
+ | # | ||
+ | Binding { | ||
+ | Port = 443 | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | TLScertFile = stardate.synchro.net.pem | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | The name of the TLScertFile could be a complete patch such as / | ||
+ | |||
+ | Finally start (or restart) the Hiawatha web server. | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | And, if you haven' | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Open up your preferred web browser and point it to your web site and test it with http and https prefixes to ensure everything works properly. | ||
+ | |||
+ | < | ||
+ | https:// | ||
+ | </ | ||
+ | |||
+ | For more information, | ||
+ | |||
+ | ====== To Do for Wiki ====== | ||
+ | < | ||
+ | 1. Update Wiki to reflect minor default path changes from Hiawatha 10.0 to 10.1. | ||
+ | 2. Possibly update Wiki to support Hiawatha 10.2's built-in support for Let's Encrypt. | ||
+ | 3. Add Wiki section on setting up automatic renewal of Let's Encrypt certificates. | ||
+ | </ | ||
===== See Also ===== | ===== See Also ===== | ||
* [[: | * [[: |