About SSL Certificates
By applying an SSL certificate to CAMServer, the warning when accessing with a standard browser can be removed.
There are two ways to obtain an SSL certificate, and we will explain each of them below.
- Apply Let's Encrypt's free SSL
- Purchase and apply Intranet SSL
Apply Let's Encrypt's free SSL
Let's Encrypt can issue certificates for free, but requires domain authentication through the HTTP-01 or DNS-01 challenge. Since CAMServer is not normally exposed to the outside world, we recommend using the DNS-01 Challenge.
DNS-01 Challenge
In the DNS-01 Challenge, ownership is verified by registering the token obtained from the Let's Encrypt server with the DNS server of the target domain name. For example, to issue a certificate for "camserver.xx", the DNS name _acme-challenge.camserver.xx.
Set the TXT type to a record named "Obtained Token".
HTTP-01 Challenge
The HTTP-01 challenge obtains a token from the Let's Encrypt server and places a file containing this token in a designated directory on the CAMServer to confirm ownership of the domain name.
For example, to issue a certificate for "camserver.xx", place the token file obtained below,
CAMServer/www/.well-known/acme-challenge/obtained-token
It must be published externally at the following URL
http://camserver.xx/.well-known/acme-challenge/取得したトークン
Once Let's Encrypt certificate creation is complete
Place the pem file according to the following procedure.
- CAMServer stop
- privkey.pem / cert.pem / chain.pem files.
CAMServer/config/ssl/
copy to - CAMServer startup
Purchase and apply Intranet SSL
To apply an SSL certificate to a CAMServer that is completely inaccessible from the outside, an Intranet SSL certificate must be purchased.
Once you have purchased Intranet SSL and obtained the keystore file, follow the steps below to apply it.
- CAMServer stop
- keystore file.
CAMServer/config/ssl/tomcat.keystore
overwriting (e.g. data, file) CAMServer/cam.ini
Add the following section to the filecamserver.keyAlias=keyAlias at certificate creation
camserver.keystorePass=keystorePass at time of certificate creation
- CAMServer startup
- CAMServer uses Tomcat as its HTTP server, and in most cases, the instructions for obtaining and creating a keystore file for Tomcat are available at the place of purchase.
- For Intranet SSL, if the root certificate is not registered in the browser of each terminal, the root and intermediate certificates must be downloaded from the place of purchase and applied separately to each terminal's browser.