open-vault/builtin/logical/pki
Steven Clark 10ecf10248
PKI: Add support for signature_bits param to the intermediate/generate api (#17388)
* PKI: Add support for signature_bits param to the intermediate/generate api

 - Mainly to work properly with GCP backed managed keys, we need to
   issue signatures that would match the GCP key algorithm.
 - At this time due to https://github.com/golang/go/issues/45990 we
   can't issue PSS signed CSRs, as the libraries in Go always request
   a PKCS1v15.
 - Add an extra check in intermediate/generate that validates the CSR's
   signature before providing it back to the client in case we generated
   a bad signature such as if an end-user used a GCP backed managed key
   with a RSA PSS algorithm.
   - GCP ignores the requested signature type and always signs with the
     key's algorithm which can lead to a CSR that says it is signed with
     a PKCS1v15 algorithm but is actually a RSA PSS signature

* Add cl

* PR feedback
2022-10-03 12:39:54 -04:00
..
cmd/pki
backend.go
backend_test.go
ca_test.go
ca_util.go
cert_util.go
cert_util_test.go
chain_test.go
chain_util.go
config_util.go
crl_test.go
crl_util.go
fields.go
integation_test.go
key_util.go
managed_key_util.go
ocsp.go
ocsp_test.go
path_config_ca.go
path_config_crl.go
path_config_urls.go
path_fetch.go
path_fetch_issuers.go
path_fetch_keys.go
path_intermediate.go
path_issue_sign.go
path_manage_issuers.go
path_manage_keys.go
path_manage_keys_test.go
path_revoke.go
path_roles.go
path_roles_test.go
path_root.go
path_sign_issuers.go
path_tidy.go
path_tidy_test.go
secret_certs.go
storage.go
storage_migrations.go
storage_migrations_test.go
storage_test.go
test_helpers.go
util.go