How do you add a Certificate Authority (CA) to Ubuntu and RHEL?
When Ubuntu / RHEL packaged Java is used, the described mechanism takes care that the certificate is added to Java trust store too. In addition, added certificates are not lost when Java version is updated.
Java's default trust store: |
Copy the .crt
file (PEM) into the /usr/local/share/ca-certificates
folder.
Run sudo update-ca-certificates
.
Java's default trust store: |
Copy the .crt
file (PEM or DER) into the /etc/pki/ca-trust/source/anchors
folder.
Run sudo update-ca-trust extract
.
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|