Skip to content


It is recommended to encrypt communication between n6 and other n6 components/tools, and to provide passwordless authentication. Use your own x509 certificates in production environment, or create some CA certificate and use it to sign some test certificates in development environment. You can use the provided bash script,, to generate the CA and one server/client certificate:

$ mkdir ~/certs
$ cp /home/dataman/n6/etc/ssl/ ~/certs
$ cp /home/dataman/n6/etc/ssl/openssl.cnf ~/certs
$ cd /home/dataman/certs

Just before running the script, modify the file to set generated certificate’s subject parts, e.g.:

Important: values CN and ORG have to match user’s logging and organization ID he belongs to, so they must be the same as login and organization ID added by the n6populate_auth_db command!

$ ./
+ DAYS=1365
Signature ok
The Subject's Distinguished Name is as follows
commonName            :ASN.1 12:''
organizationName      :ASN.1 12:''
Certificate is to be certified until May 18 10:35:10 2023 GMT (1365 days)

Write out database with 1 new entries
Data Base Updated

Script should generate some files. Most important are: * cert.pem * key.pem * N6-CA/cacert.pem

Generated files will be used to authenticate some requests to n6 Rest API. Authentication to n6 Portal (GUI) will be executed by the certificate converted to p12 format, imported to a browser:

$ openssl pkcs12 -export -out ImportMetoWebBrowser.p12 -in cert.pem -inkey key.pem

Using your favourite browser, import the converted certificate p12 file ImportMetoWebBrowser.p12 using browser’s advanced settings.

Back to top