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
Regenerate Key Vault with renames, update READMEs (#2459)
* Regenerate Key Vault with renames, update READMEs
* Update release information
* Fix typo
* Set VCPKG_ROOT
Also includes instructions in the root `CONTRIBUTING.md`.
The unsetting of `VCPKG_ROOT` was intentional:
<actions/runner-images#6376>
Still, that was done a while ago and our pipelines had been working.
We're still investigating *what* changed.
* Remove dev-dependency on openssl
Need to build openssl on Windows, but we'll tackle that post-beta.2.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,38 @@ Alternatively, you can build any one or more crates by passing their crate names
30
30
You can also build the entire workspace by either building from the root source directory or running `cargo build --workspace`, but unless you're making changes to `azure_core`
31
31
or its dependencies, this is generally unnecessary nor recommended. It will take considerable time and drive space.
32
32
33
+
### Building on Windows
34
+
35
+
By default we use the [`openssl`](https://crates.io/crates/openssl) crate and, indirectly, the [`openssl-sys`](https://crates.io/crates/openssl-sys) crate. On Windows, you may need to download and build openssl before you can successfully compile.
36
+
Since `openssl-sys` supports [vcpkg](https://learn.microsoft.com/vcpkg/), you can bootstrap OpenSSL:
37
+
38
+
1. Clone `vcpkg` somewhere in your development environment:
Copy file name to clipboardExpand all lines: sdk/keyvault/azure_security_keyvault_certificates/README.md
+218-3Lines changed: 218 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,9 +52,9 @@ Instantiate a `DefaultAzureCredential` to pass to the client. The same instance
52
52
53
53
## Key concepts
54
54
55
-
### CertificateBundle
55
+
### Certificate
56
56
57
-
A Azure Key Vault certificate public key. The private key is never included when retrieving a `CertificateBundle`.
57
+
A Azure Key Vault certificate public key. The private key is never included when retrieving a `Certificate`.
58
58
59
59
### CertificateClient
60
60
@@ -66,7 +66,222 @@ We guarantee that all client instance methods are thread-safe and independent of
66
66
67
67
## Examples
68
68
69
-
> TODO
69
+
The following section provides several code snippets using the `CertificateClient`, covering some of the most common Azure Key Vault certificates service related tasks:
70
+
71
+
*[Create a certificate](#create-a-certificate)
72
+
*[Retrieve a certificate](#retrieve-a-certificate)
73
+
*[Update an existing certificate](#update-an-existing-certificate)
74
+
*[Delete a certificate](#delete-a-certificate)
75
+
*[List certificates](#list-certificates)
76
+
77
+
### Create a certificate
78
+
79
+
`create_certificate` creates a Key Vault certificate to be stored in the Azure Key Vault. If a certificate with the same name already exists, then a new version of the certificate is created.
80
+
Before we can create a new certificate, though, we need to define a certificate policy. This is used for the first certificate version and all subsequent versions of that certificate until changed.
`update_certificate_properties` updates a certificate previously stored in the Azure Key Vault.
189
+
Only the attributes of the certificate are updated. To regenerate the certificate, call `CertificateClient::create_certificate` on a certificate with the same name.
`delete_certificate` will tell Key Vault to delete a certificate but it is not deleted immediately.
231
+
It will not be deleted until the service-configured data retention period - the default is 90 days - or until you call `purge_certificate` on the returned `DeletedCertificate.id`.
0 commit comments