In AxxonData, you can apply a custom certificate and a custom domain name.
To generate and apply a custom certificate and a custom domain name, do the following:
Place the v3.ext file and the gen-srt.ch generation script in the same directory.
In line 4 in the DOMAIN parameter, change the default domain name to a custom domain name. For example, DOMAIN=customdomain.test.
sudo ./gen-crt.sh |
./ssl:/etc/nginx/ssl |
|
sudo ./run.sh |
sudo docker service ls |
sudo mkdir /usr/share/ca-certificates/extra sudo cp rootCA.pem /usr/share/ca-certificates/extra/rootCA.crt sudo dpkg-reconfigure ca-certificates |
127.0.0.1 <Domain name> |
curl -I https://<Domain name> |
HTTP/2 200 server: nginx/1.20.0 date: Wed, 10 May 2023 08:45:23 GMT content-type: text/html content-length: 301 last-modified: Fri, 14 Apr 2023 04:16:58 GMT etag: "6438d3ba-12d" cache-control: no-cache accept-ranges: bytes |
#!/bin/bash certfile="rootCA.pem" certname="My Root CA1" for certDB in $(find ~/ -name "cert8.db") do certdir=$(dirname ${certDB}); certutil -A -n "${certname}" -t "TCu,Cu,Tu" -i ${certfile} -d dbm:${certdir} done for certDB in $(find ~/ -name "cert9.db") do certdir=$(dirname ${certDB}); certutil -A -n "${certname}" -t "TCu,Cu,Tu" -i ${certfile} -d sql:${certdir} done |
sudo chmod u+x install_cert.sh |
sudo ./install_cert.sh |
Open a browser and check the secure connection by typing https://<Domain name> in the search bar. As a result, the AxxonData login window opens in a browser using a custom domain name.
Generation of a custom certificate and a custom domain name is complete.