Skip to content

Commit

Permalink
clarify client certificate authentication limitation (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-henglu authored Dec 5, 2024
1 parent c2f6536 commit 4e3b32f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/guides/service_principal_client_certificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ $ openssl x509 -signkey "service-principal.key" -in "service-principal.csr" -req
Finally we can generate a PFX file which can be used to authenticate with Azure:

```shell
$ openssl pkcs12 -export -out "service-principal.pfx" -inkey "service-principal.key" -in "service-principal.crt"
$ openssl pkcs12 -certpbe PBE-SHA1-3DES -keypbe PBE-SHA1-3DES -export -macalg sha1 -out "service-principal.pfx" -inkey "service-principal.key" -in "service-principal.crt"
```

~> **NOTE:** The certificate support in AzAPI provider has limitations, for example it can't decrypt keys in PEM format or PKCS#12 certificates that use SHA256 for message authentication. If you encounter such limitations, please generate the PFX file with above command.

Now that we've generated a certificate, we can create the Azure Active Directory Application.

---
Expand Down
4 changes: 3 additions & 1 deletion templates/guides/service_principal_client_certificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ $ openssl x509 -signkey "service-principal.key" -in "service-principal.csr" -req
Finally we can generate a PFX file which can be used to authenticate with Azure:

```shell
$ openssl pkcs12 -export -out "service-principal.pfx" -inkey "service-principal.key" -in "service-principal.crt"
$ openssl pkcs12 -certpbe PBE-SHA1-3DES -keypbe PBE-SHA1-3DES -export -macalg sha1 -out "service-principal.pfx" -inkey "service-principal.key" -in "service-principal.crt"
```

~> **NOTE:** The certificate support in AzAPI provider has limitations, for example it can't decrypt keys in PEM format or PKCS#12 certificates that use SHA256 for message authentication. If you encounter such limitations, please generate the PFX file with above command.

Now that we've generated a certificate, we can create the Azure Active Directory Application.

---
Expand Down

0 comments on commit 4e3b32f

Please sign in to comment.