Kit Haines
99c74f5c80
Base Binary Cert and CSR Parse functions. ( #24958 )
...
* Base Binary Cert and CSR Parse functions.
* Add otherSANS parsing.
* Notate what doesn't exist on a CSR.
* Fix otherSans call err-checking and add basic-constriants to CSR
* Move BasicConstraint parsing to be optionally set.
* Refactored to use existing ParseBasicConstraintsExtension.
* Add handling for the ChangeSubjectName ext on CSR that is needed for EST
* Remove ChangeSubjectName - it's an attribute, not an extension, and there is no clean way to parse it, so pair down for now.
* Make these public methods, so they can be used in vault.
* Add unit tests for certutil.ParseCertificateToCreationParameters.
Also add unit tests for certutil.ParseCertificateToFields.
* Cleanup TestParseCertificate.
* Add unit tests for certutil.ParseCsrToCreationParameters and ParseCsrToFields.
* Fix return values for "add_basic_constraints" in certutil.ParseCsrToFields.
Add a test for parsing CSRs where "add_basic_constraints" is false.
* Clear up some todos.
* Add a test for certutil.ParseCertificateToCreationParameters for non-CA cert.
* Tweak TestParseCertificate/full_non_CA_cert.
* Basics of three remaining fields - keyUsage; extKeyUsage; PolicyIdentifiers
* Fix tests and err handling
* Add unit tests for policy_identifiers; ext_key_usage_oids; key_usage
* Add test on ext_key_usage_oids
* Remove duplicate usages elsewhere.
* Add error handling to csr-checks.
* Remove extranames on returned types.
* Remove useless function.
---------
Co-authored-by: Victor Rodriguez <vrizo@hashicorp.com>
2024-02-01 10:03:43 -05:00
..
2024-01-24 12:56:05 -05:00
2024-01-30 14:33:06 +00:00
2024-02-01 09:11:08 -05:00
2024-01-09 15:29:30 +01:00
2023-08-10 18:14:03 -07:00
2024-01-04 13:01:38 -05:00
2024-01-30 13:10:23 +00:00
2023-08-10 18:14:03 -07:00
2023-08-10 18:14:03 -07:00
2023-12-04 11:05:02 -08:00
2024-01-03 15:06:41 -05:00
2024-01-03 15:06:41 -05:00
2024-01-26 15:24:32 -05:00
2024-01-11 08:56:50 -05:00
2023-08-10 18:14:03 -07:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2024-01-22 16:00:03 -08:00
2024-01-22 16:00:03 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2024-01-22 16:00:03 -08:00
2024-01-22 16:00:03 -08:00
2023-12-04 11:05:02 -08:00
2023-08-10 18:14:03 -07:00
2023-08-10 18:14:03 -07:00
2023-08-10 18:14:03 -07:00
2023-08-10 18:14:03 -07:00
2023-10-17 09:46:54 -04:00
2023-08-10 18:14:03 -07:00
2024-01-09 15:29:30 +01:00
2024-01-09 15:29:30 +01:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-08-10 18:14:03 -07:00
2024-01-09 15:29:30 +01:00
2023-08-10 18:14:03 -07:00
2024-01-30 13:10:23 +00:00
2023-08-10 18:14:03 -07:00
2023-08-10 18:14:03 -07:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-10-09 12:53:13 -05:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-08-10 18:14:03 -07:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2024-01-18 20:00:00 +00:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-14 11:28:58 -08:00
2023-12-04 11:05:02 -08:00
2023-12-14 11:28:58 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-08-10 18:14:03 -07:00
2023-12-11 08:08:48 -08:00
2023-12-04 11:05:02 -08:00
2023-08-10 18:14:03 -07:00
2024-01-09 15:29:30 +01:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-08-10 18:14:03 -07:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2024-01-26 13:00:38 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-08-10 18:14:03 -07:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-08-10 18:14:03 -07:00
2023-08-10 18:14:03 -07:00
2023-08-10 18:14:03 -07:00
2023-08-10 18:14:03 -07:00
2023-08-10 18:14:03 -07:00
2024-02-01 10:03:43 -05:00
2023-08-10 18:14:03 -07:00
2023-08-10 18:14:03 -07:00
2023-12-04 11:05:02 -08:00
2023-12-07 12:36:17 +00:00
2023-12-04 11:05:02 -08:00
2023-12-07 12:36:17 +00:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2024-01-17 15:46:27 +00:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2024-01-17 15:46:27 +00:00
2024-01-17 15:46:27 +00:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2024-01-16 16:36:07 +00:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-08-10 18:14:03 -07:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2024-01-11 08:56:50 -05:00
2024-01-11 08:56:50 -05:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2024-01-22 16:00:03 -08:00
2024-01-22 16:00:03 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2024-01-22 16:00:03 -08:00
2024-01-22 16:00:03 -08:00
2023-12-04 11:05:02 -08:00
2023-08-10 18:14:03 -07:00
2023-08-10 18:14:03 -07:00
2024-02-01 09:11:08 -05:00
2024-02-01 09:11:08 -05:00
2024-01-31 17:27:52 -06:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-13 11:15:21 -05:00
2023-12-13 11:15:21 -05:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-11-21 10:58:44 -05:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00
2023-12-04 11:05:02 -08:00