Installing certificate in SAM v1.5.2 on Snare Central v8.4.2
For SAM to use a custom certificate, first it is required to install the certificate in the Snare central server, once the certificate has been installed, restart SAM so the new certificate can be detected and then go to SAM UI to "Settings"->"General->"Agent HTTPS Certificate" option and choose the certificate from the selection list.
To install the certificate the procedure is as follows:
Given a CA certificate file foo.pem
, follow these steps to install it on Snare Central:
Create a directory for extra CA certificates in
/usr/local/share/ca-certificates
:sudo mkdir /usr/local/share/ca-certificates/SAM
Copy the CA
.pem
file to this directory but rename it to crt:sudo cp foo.pem /usr/local/share/ca-certificates/SAM/foo.crt copy the private key to the private key store on the system sudo cp priv.key /etc/ssl/private/priv.key
Let Snare Central add the
.crt
file's path relative to/usr/local/share/ca-certificates
to/etc/ca-certificates.conf
:sudo update-ca-certificates
Restart SAM:
Go to SAM UI to “Settings” → “General”
Choose the correct certificate in “Agent HTTPS Certificate”