This guide provides a step-by-step process for creating a self-signed SSL certificate using OpenSSL and configuring OTbase to use it. Before beginning, ensure you have OpenSSL installed on your system. If not, you can download it from the official OpenSSL website.
Install OpenSSL
Download OpenSSL: Visit the OpenSSL download page and download the appropriate version for your operating system.
Install OpenSSL: Follow the installation instructions provided on the website or in the downloaded files.
Generate a Self-Signed Certificate
Open the Terminal and navigate to the folder where you want to create the certificate files. We'll now generate the certificate by running the following command:
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout ot-base.key -out ot-base.crt -addext "subjectAltName = IP:your.ip.address.here"
Replace your.ip.address.here
with your server's IP address or hostname.
Next, you'll be prompted to enter details like your country, state, organization, etc. Fill these out as appropriate.
Copy the Certificate to the OTbase Config Folder
Find the configuration folder for OTbase on your system. You can find your environment's respective folder using this chart.
Environment | Configuration Folder Location |
---|---|
Windows | C:\ProgramData\Langner\OT-BASE Asset Center\config |
Linux | var/otbase/config |
Copy the Certificate Files
Copy both the ot-base.key
and ot-base.crt
files to the OTbase configuration folder.
Reload OTbase to Use the New Certificate
Run the following command to reload OTbase with the new certificate:
docker exec -ti ot-base reload
Verify the HTTPS Configuration
Launch your preferred web browser and navigate to your OTbase URL
https://your.hostname.here
(replace with your hostname).
Check for a Secure Connection
Your browser should indicate that the connection is secure.
Note: Since this is a self-signed certificate, you might initially get a warning which you can bypass.
Comments
0 comments
Please sign in to leave a comment.