Local SSL certificate
Requried Runtipi version: >= 1.5.0
Introduction
With runtipi you can access your dashboard and apps locally using a secure connection. When installing runtipi, a self-signed SSL certificate is generated for you.
The default domain for the certificate is tipi.lan
. You can change this domain in the settings page of the dashboard. Or by giving the localDomain
value in your settings.json
file.
See the custom-settings section for more information.
Trusting the certificate
To be able to use the certificate, you need to trust it. This is done by adding the certificate to your operating system's trust store.
First you need to export the certificate from the runtipi dashboard. You can do this by clicking the Download certificate
button in the settings page of the dashboard. (below the Local domain
input field)
Windows
- Open the
Start
menu and typecertmgr.msc
and pressEnter
. - In the left pane, click
Trusted Root Certification Authorities
. - In the right pane, click
Certificates
. - On the
Action
menu, point toAll Tasks
, and then clickImport
. - Follow the instructions in the
Certificate Import Wizard
to import the certificate.
macOS
- Open the
Keychain Access
app. - Click
File
>Import Items
. - Select the certificate file and click
Open
. - Double-click the certificate file.
- Expand the
Trust
section. - Change the
When using this certificate
option toAlways Trust
.
Linux
- Copy the certificate file to
/usr/local/share/ca-certificates/
. - Run
sudo update-ca-certificates
.
DNS resolution
To be able to access your dashboard and apps using the local domain, you need to make sure that the domain resolves to the IP address of your runtipi server.
The easiest way to do this is by running a DNS server on your network and adding the domain to it. You can use Pi-hole or AdGuard Home for this. Both are available as apps in the runtipi App store.
For example using AdGuard Home you can add the domain to the DNS rewrites
section of the app.
Don't forget to add the wildcard domain *.tipi.lan
to the DNS rewrites
section in order to be
able to access your apps as well.
If you don't have a DNS server running on your network, you can add the domain to the hosts
file on your computer.
By using this method you need to do this on every device you want to access your dashboard and
apps from and for every domain you want to use. (e.g. tipi.lan
, app1.tipi.lan
,
app2.tipi.lan
)
Windows
- Open the
Start
menu and typeNotepad
and pressEnter
. - Click
File
>Open
. - Navigate to
C:\Windows\System32\drivers\etc
. - Change the file filter to
All Files (*.*)
. - Select
hosts
and clickOpen
. - Add the following line to the end of the file:
<ip-address> <domain>
. - Save the file.
macOS / Linux
- Open the
Terminal
app. - Run
sudo nano /etc/hosts
. - Add the following line to the end of the file:
<ip-address> <domain>
. - Press
Ctrl + X
to exit. - Press
Y
to save the file. - Press
Enter
to confirm the file name.