mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
Update PKI documentation to clear up PKCS8 marshalling behavior (#17080)
- Update the documentation in regards to the private_key_format argument only controls the behavior of the private_key response field and does not modify the encoding of the private key within the pem_bundle.
This commit is contained in:
@@ -272,10 +272,14 @@ It is suggested to limit access to the path-overridden issue endpoint (on
|
|||||||
private key and certificate, concatenated; if the issuing CA is not a
|
private key and certificate, concatenated; if the issuing CA is not a
|
||||||
Vault-derived self-signed root, this will be included as well.
|
Vault-derived self-signed root, this will be included as well.
|
||||||
|
|
||||||
- `private_key_format` `(string: "der")` - Specifies the format for marshaling the
|
- `private_key_format` `(string: "der")` - Specifies the format for marshaling
|
||||||
private key. Defaults to `der` which will return either base64-encoded DER or
|
the private key within the private_key response field. Defaults to `der` which will
|
||||||
PEM-encoded DER, depending on the value of `format`. The other option is
|
return either base64-encoded DER or PEM-encoded DER, depending on the value of
|
||||||
`pkcs8` which will return the key marshalled as PEM-encoded PKCS8.
|
`format`. The other option is `pkcs8` which will return the key marshalled as
|
||||||
|
PEM-encoded PKCS8.
|
||||||
|
|
||||||
|
~> **Note** that this does not apply to the private key within the certificate
|
||||||
|
field if `format=pem_bundle` parameter is specified.
|
||||||
|
|
||||||
- `exclude_cn_from_sans` `(bool: false)` - If true, the given `common_name` will
|
- `exclude_cn_from_sans` `(bool: false)` - If true, the given `common_name` will
|
||||||
not be included in DNS or Email Subject Alternate Names (as appropriate).
|
not be included in DNS or Email Subject Alternate Names (as appropriate).
|
||||||
@@ -1530,10 +1534,14 @@ use the values set via `config/urls`.
|
|||||||
exported) and certificate, concatenated; if the issuing CA is not a
|
exported) and certificate, concatenated; if the issuing CA is not a
|
||||||
Vault-derived self-signed root, this will be included as well.
|
Vault-derived self-signed root, this will be included as well.
|
||||||
|
|
||||||
- `private_key_format` `(string: "der")` - Specifies the format for marshaling the
|
- `private_key_format` `(string: "der")` - Specifies the format for marshaling
|
||||||
private key. Defaults to `der` which will return either base64-encoded DER or
|
the private key within the private_key response field. Defaults to `der` which will
|
||||||
PEM-encoded DER, depending on the value of `format`. The other option is
|
return either base64-encoded DER or PEM-encoded DER, depending on the value of
|
||||||
`pkcs8` which will return the key marshalled as PEM-encoded PKCS8.
|
`format`. The other option is `pkcs8` which will return the key marshalled as
|
||||||
|
PEM-encoded PKCS8.
|
||||||
|
|
||||||
|
~> **Note** that this does not apply to the private key within the certificate
|
||||||
|
field if `format=pem_bundle` parameter is specified.
|
||||||
|
|
||||||
- `key_type` `(string: "rsa")` - Specifies the desired key type; must be `rsa`, `ed25519`
|
- `key_type` `(string: "rsa")` - Specifies the desired key type; must be `rsa`, `ed25519`
|
||||||
or `ec`.
|
or `ec`.
|
||||||
@@ -1723,10 +1731,14 @@ generated depending on the `type` request parameter.
|
|||||||
base64 encoded. If `pem_bundle`, the `csr` field will contain the private key
|
base64 encoded. If `pem_bundle`, the `csr` field will contain the private key
|
||||||
(if exported) and CSR, concatenated.
|
(if exported) and CSR, concatenated.
|
||||||
|
|
||||||
- `private_key_format` `(string: "der")` - Specifies the format for marshaling the
|
- `private_key_format` `(string: "der")` - Specifies the format for marshaling
|
||||||
private key. Defaults to `der` which will return either base64-encoded DER or
|
the private key within the private_key response field. Defaults to `der` which will
|
||||||
PEM-encoded DER, depending on the value of `format`. The other option is
|
return either base64-encoded DER or PEM-encoded DER, depending on the value of
|
||||||
`pkcs8` which will return the key marshalled as PEM-encoded PKCS8.
|
`format`. The other option is `pkcs8` which will return the key marshalled as
|
||||||
|
PEM-encoded PKCS8.
|
||||||
|
|
||||||
|
~> **Note** that this does not apply to the private key within the certificate
|
||||||
|
field if `format=pem_bundle` parameter is specified.
|
||||||
|
|
||||||
- `key_type` `(string: "rsa")` - Specifies the desired key type; must be `rsa`, `ed25519`
|
- `key_type` `(string: "rsa")` - Specifies the desired key type; must be `rsa`, `ed25519`
|
||||||
or `ec`. Not suitable for `type=existing` requests.
|
or `ec`. Not suitable for `type=existing` requests.
|
||||||
|
|||||||
Reference in New Issue
Block a user