The content of both files should be used when importing the certificate to Artifactory, as mentioned in import your PEM certificate to Artifactory. After importing the PEM certificate, create a new RPM remote repository. Under URL pass the URL to the repository (e.g. https://cdn.redhat.com/content/dist/rhel8/8/x86_64/appstream/os) and add the certificate by navigating to Advanced => Remote Authentication => SSL / TLS Certificate and select the certificate from the drop-down list.