Repository navigation
X.509/Certificate: Add tbs_precertificate_bytes property - #7279
Conversation
Whoops, you're absolutely right. I'll move this under the right class. |
alex
left a comment
There was a problem hiding this comment.
You'll also need to add docs for the test vector.
|
You'll need to rebase to fix the alpine issue. |
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
in default example
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Co-authored-by: Alex Gaynor <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
b126584 to
fb1455a
Compare
|
Spell check doesn't like "Precertificate", see |
Signed-off-by: William Woodruff <[email protected]>
I went ahead and reworded to "pre-certificate," since that's used elsewhere in the docs. |
Signed-off-by: William Woodruff <[email protected]>
| None => Err(PyAsn1Error::from(pyo3::exceptions::PyValueError::new_err( | ||
| "Could not find any extensions in TBS certificate", | ||
| ))), |
There was a problem hiding this comment.
Grr. Okay, time to see if there's already a vector with no extensions and reuse it...
There was a problem hiding this comment.
There is! I dont' remember which one it is though. Check test-vectors.rst
Signed-off-by: William Woodruff <[email protected]>
Head branch was pushed to by a user without write access
This supersedes #7267, which I can't push to.
This is required for verifying embedded SCTs in sigstore-python. According to IETF's RFC 6962, this data is part of the digitally signed payload that forms the SCT's signature. This still needs unit tests.