![]() usr/lib/pritunl/local/lib/python2.7/site-packages/pritunl/app.py-163: server_key_path = None usr/lib/pritunl/local/lib/python2.7/site-packages/pritunl/app.py:162: server_cert_path = None # grep -Rns -e "server_cert_path = None" -e "server_key_path = None" /usr/lib/pritunl/local/ I prefer to limit it to /usr/lib/pritunl/local/ but on Debian the files are duplicated in /usr/lib/pritunl/lib/ as well. # grep -Rns -e "server_cert_path = None" -e "server_key_path = None" /path/to/pritunl/install/ (Probably don't need to change in server.py as well) The lines that need changing are in app.py (and server.py) under the Pritunl install. Never settle for *it works*"įind "server_cert_path" and "server_key_path" variables in Pritunl server. If you do not want/need a redirect to the port the Web Console is running on *AND* you *DO NOT* use the built in LetsEncrypt functionality (if you do, why are you reading this?), you can safely set "app.redirect_server" to "false" # Disable redirect to the port defined in "app.server_port": ![]() # Enable redirect to the port defined in "app.server_port": Pritunl set app.server_port 443 (or whatever port you want the Web Console UI to listen on) Pritunl set app.server_key "$(cat /path/to/privkey.pem)" ![]() Pritunl set app.server_cert "$(cat /path/to/cert.pem)" # By default, an additional web server runs on :80 for LetsEncrypt verification and redirecting HTTP requests to the "app.server_port" (HTTPS): # Get current Web Console Port (This cooresponds to the "Web Console Port" option in the settings on the web ui): ![]() The commands below can be used to get/set the values of the cert, key, port and if the :80 -> "app.server_port" redirect is active. These can be set from the cli with the "pritunl" command. ![]()
0 Comments
Leave a Reply. |