Reputation: 474
I want to verify and use a certificate (PEM file) from Azure MySQL Server. I need to be able to add this to KV and then use it in my connection string.
So I download this certificate and then i want to put it in my key vault and access it in my Azure function for the connection string for EfCore (pomelo).
I get this error in Keyvault and it makes sense to me but how do i get the private key so i can add it in ?
Private key is not specified in the specified X.509 PEM certificate content. Please specify private key in the X.509 PEM certificate content.
My PEM certificate i have downloaded from the MySQL Pane in Azure just gives me
-----BEGIN CERTIFICATE-----
blah
-----END CERTIFICATE-----
and i need the private key inside it too like it shows in the azure documentation :
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
I need to do a full verify of the certificate in my connection string like this :
Server=**=dbheat;Uid=**;Pwd=**;SslMode=VerifyCA;SslCert='/'",
Upvotes: 0
Views: 76