> For AI agents: the complete documentation index is available at https://www.jumpserver.com/docs/v4/llms.txt, the full documentation bundle is available at https://www.jumpserver.com/docs/v4/llms-full.txt.

# 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:
```sh
/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.
```sh
vi /opt/jumpserver/config/config.txt
```
Change "demo.example.com" to your actual domain name.
```sh
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.
```sh
./jmsctl.sh restart
```

5

Completed.
