Skip to content

Using the generated Certificate for Azure Domain Services Secure LDAP #209

Answered by lonniev
lonniev asked this question in Q&A
Discussion options

You must be logged in to vote

Answer myself.

The certificate that gets stored in Azure Key Vault is downloaded from Azure as a PFX without an encryption passphrase. (The dialog in Azure warns this before it does so.)

So one ends up with a PFX without a password and Azure Active Directory Domain Services wants a password-protected PFX

To generate a password-protected PFX from a non-password-protected one, openssl can be used.

openssl pkcs12 -in kv-acmebot-name.pfx -nocerts -out acmebot.key
openssl pkcs12 -in kv-acmebot-name.pfx -clcerts -nokeys -out acmebot.cer
openssl pkcs12 -export -out acmebot.pfx -inkey acmebot.key -in acmebot.cer

You will get asked along the way for the necessary pass phrases.

The final PFX file w…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lonniev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants