Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
wrosenuance committed Dec 15, 2020
1 parent 0b24816 commit 8cc9b11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/how-to-test-azure-ad-authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ azureuser@azure-vm:~$ openssl req -x509 -nodes -newkey rsa:4096 -keyout client.k
-subj "/C=US/ST=MA/L=Boston/O=Global Security/OU=IT Department/CN=AD-SP"
azureuser@azure-vm:~$ openssl pkcs12 -export -out client.p12 -inkey client.key -in client.crt \
-passout "pass:$(jq -r '.app_sp_client_secret.value' settings.json)"
azureuser@azure-vm:~$ export APP_SP_CLIENT_CERT="$PWD/client.p12"
azureuser@azure-vm:~$ openssl rsa -out client.pem -in client.key \
-passout "pass:$(jq -r '.app_sp_client_secret.value' settings.json)"
azureuser@azure-vm:~$ cat client.crt >> client.pem
azureuser@azure-vm:~$ export APP_SP_CLIENT_CERT="$PWD/client.pem"
```

Use the Azure CLI to add the client certificate to the application service principal:
Expand Down

0 comments on commit 8cc9b11

Please sign in to comment.