How to Install CA Certs on an RPM-Based OS?

JFrog Support
2023-01-22 11:05

To trust the server certificate on an Artifactory/Xray (RPM installation), we recommend executing the following commands (Note: Both will require root access):

1. Extract the trusted certs
 

/usr/bin/p11-kit extract --format=java-cacerts --filter=certificates --overwrite --purpose server-auth /etc/pki/ca-trust/extracted/java/cacerts

2. Import the untrusted server certificate

keytool -import -alias <art> -file <file.cer> -keystore “/etc/pki/ca-trust/extracted/java/cacerts” -storepass changeit