Enable HTTPS
This topic explains how to configure HTTPS for the JumpServer service to ensure encrypted and secure communication.
1.
Log in to the JumpServer deployment server using the "root" or another user with superuser privileges.
2.
Place your certificate files in the following directory:
/opt/jumpserver/config/nginx/cert
Ensure the certificate files are named as follows:
- server.crt
- server.key
3.
Edit the config.txt
file and modify the following configuration settings.
vi /opt/jumpserver/config/config.txt
Change "demo.example.com" to your actual domain name.
HTTPS_PORT=443
SERVER_NAME=demo.example.com
SSL_CERTIFICATE=server.crt
SSL_CERTIFICATE_KEY=server.key
4.
Change to the "JumpServer offline package" directory and run the command to restart the service.
./jmsctl.sh restart
5.
Completed.