Configuring SSL Certificates in RStudio Server Pro

Configuring SSL certificates

You can configure SSL/TLS certificates by editing the configuration file to point to the relevant private key and certificate files and restarting RStudio Server Pro.

To configure SSL certificates, add the following lines to the RStudio Server Pro configuration file:

File: /etc/rstudio/rserver.conf

ssl-enabled=1
ssl-certificate=<PATH-TO-CERTIFICATE-FILE>
ssl-certificate-key=<PATH-TO-KEY-FILE>

Info

For HTTP to HTTPS redirects to work properly, ensure that you remove the www-port option from the configuration file if you have defined it.

Then restart RStudio Server Pro by running the following command:

Terminal

$ sudo rstudio-server restart

When RStudio Server is configured to use SSL, then all HTTP traffic to port 80 will be redirected to HTTPS on port 443.

Additional documentation

For more information on SSL certificates and other related settings, refer to the SSL Configuration section in the RStudio Server Pro Administration Guide.