. . .

Setup Dashboard SSL

This page describes which settings you need to configure when you want to install SSL / HTTPS for ApiOmat on Linux Sever. Before configuring Apache/HTTPD and apiomat.yaml you need to install certificates, which will be used in the Apache settings. So its recommended to have openssl installed before starting the installation (linux: "apt-get install openssl / yum install openssl"), so that you can use the console command "openssl" as it is described in the following section.

Creating certificate with openssl

Now use the following commands create the files:

# generate private key
mkdir -p /etc/ssl/private
openssl genrsa -out /etc/ssl/private/apiomat.key 2048
# generate certificate with key
mkdir -p /etc/ssl/certs
openssl req -new -x509 -key /etc/ssl/private/apiomat.key -days 365 -sha256 -out /etc/ssl/certs/apiomat.crt

An unsigned SSL certificate was created. In order to get a signed SSL certificate, proceed as follows.

# generate private key
mkdir -p /etc/ssl/private
openssl genrsa -out /etc/ssl/private/apiomat.key 2048
# generate certificate with key
mkdir -p /etc/ssl/certs
openssl req -new -key /etc/ssl/private/apiomat.key -out ~/apiomat.csr
# The common name must be assigned here with your domain name (for example: example.com).

A csr file is used to request a signed certificate (Certificate Signing Request).

How to proceed with this csr file depends on the respective certificate authority (CA). It should be explained on their site. The created signed certificates from the CA must now be stored on the server (for example, under /etc/ssl/certs/apiomat.crt).


* link only available in Enterprise Documentation