---
title: HTTPS for SuperAdmin
project: SuperAdmin
version: 9.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/superadmin/9-0/guides/superadmin-https/
updated: 2026-11-19T08:00:35.592Z
---

# HTTPS for SuperAdmin

> Serve SuperAdmin itself over HTTPS with your own certificate.

The install script asks whether SuperAdmin should use HTTPS. If you chose HTTP, you can switch later with the script `reconfigure.sh` and a certificate that you already have.

## Switch to HTTPS

**1.** Become root on the server and copy the certificate and the key to these exact paths, where `superadmin.example.com` is your domain:

```text
/www/ssl/superadmin.example.com/fullchain.cer
/www/ssl/superadmin.example.com/superadmin.example.com.key
```

The `.cer` file must hold the full chain.

**2.** Run the script:

```bash
cd /www/superadmin
bash reconfigure.sh y superadmin.example.com n
```

The arguments mean: use HTTPS (`y`), the domain, and do not request a new certificate (`n`).

**3.** Wait for this line:

```text
Configured superadmin with https://superadmin.example.com
```

The script then restarts SuperAdmin.

**4.** Open `https://superadmin.example.com/`. The HTTP address redirects to it.

## Switch back to HTTP

```bash
cd /www/superadmin
bash reconfigure.sh n superadmin.example.com
```

## Renew the certificate

Replace the two files and reload Nginx:

```bash
nginx -t && nginx -s reload
```
