openssl: create a cert.pem file from keychain certs

Closes #21065.