How do I install CA certs on RPM based OS?

Subject

How do I install CA certs on RPM based OS?

Instructions:

In order to trust the server certificate on Artifactory/Xray (RPM Installation), we recommend following the steps below:
NOTE: All commands are executed with 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

1. Import the untrusted server certificate
keytool -import -alias <art> -file <file.cer> -keystore “/etc/pki/ca-trust/extracted/java/cacerts” -storepass changeit