Closed hongooi73 closed 5 years ago
No, you need to read both separately. In your case you use read_key("mycert.pem")
to read the key and read_cert("mycert.pem")
to read the cert from that file.
This is because usually the private key is not contained in the same file as the cert, because you are sharing the cert with 3rd parties.
No worries. Also, a huge thank you for all the work you've done on R infrastructure. I couldn't imagine trying to work without jsonlite, openssl, and now jose; not to mention getting R to work nicely with Windows.
Hi, I just had a question about certificates. Say I have a file "mycert.pem" that contains both the public cert and the private key. Does openssl include any object class to represent both of these?
I can read this via
read_pem
:But this is just a regular list. Or I can read this via
read_cert
:But this only includes the public cert.
The background to the question is that I'm extending my AzureAuth package to allow authenticating with certs. I already have an S3 generic and method for signing a client assertion using a cert stored in Azure Key Vault, and I was hoping that I could just write a similar method for openssl objects.