You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/spring/azure-spring-boot-samples/azure-spring-boot-sample-keyvault-secrets/README.md
+29-3Lines changed: 29 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,11 +56,25 @@ az keyvault secret set --name <yourSecretPropertyName> \
56
56
--vault-name <your_keyvault_name>
57
57
```
58
58
59
-
59
+
- If you want to use certificate authentication, upload the certificate file to App registrations in Azure Active Directory by using Azure Portal.
60
+
You can manually add a new application or use the service principal created in the previous step.
61
+
62
+
1. Select **App registrations**, then select the application name or service principal name just created.
63
+
64
+
1. Select **Certificates & secrets**, then select **Upload Certificate**, upload your cer, pem, or crt type certificate, click **Add** button to complete the upload.
65
+
66
+
1. If you add a new application, grant appropriate permissions to the application created.
67
+
68
+
You can use the following az cli commands:
69
+
```bash
70
+
az keyvault set-policy --name <your_keyvault_name> \
@@ -89,6 +103,18 @@ The valid secret-service-version value can be found [here][version_link].
89
103
90
104
If property not set, the property will be filled with the latest value.
91
105
106
+
### The certificate-based authentication property setting
107
+
If you use certificate authentication, you only need to replace the property `azure.keyvault.client-key` with `azure.keyvault.certificate-path`, which points to your certificate.
0 commit comments