Skip to content

Commit 4e3b32f

Browse files
authored
clarify client certificate authentication limitation (#686)
1 parent c2f6536 commit 4e3b32f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/guides/service_principal_client_certificate.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ $ openssl x509 -signkey "service-principal.key" -in "service-principal.csr" -req
3333
Finally we can generate a PFX file which can be used to authenticate with Azure:
3434

3535
```shell
36-
$ openssl pkcs12 -export -out "service-principal.pfx" -inkey "service-principal.key" -in "service-principal.crt"
36+
$ 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"
3737
```
3838

39+
~> **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.
40+
3941
Now that we've generated a certificate, we can create the Azure Active Directory Application.
4042

4143
---

templates/guides/service_principal_client_certificate.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ $ openssl x509 -signkey "service-principal.key" -in "service-principal.csr" -req
3333
Finally we can generate a PFX file which can be used to authenticate with Azure:
3434

3535
```shell
36-
$ openssl pkcs12 -export -out "service-principal.pfx" -inkey "service-principal.key" -in "service-principal.crt"
36+
$ 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"
3737
```
3838

39+
~> **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.
40+
3941
Now that we've generated a certificate, we can create the Azure Active Directory Application.
4042

4143
---

0 commit comments

Comments
 (0)