-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
_verify: Check for URI SANs when verifying certificate emails (#288)
* _verify: Check for URI SANs when verifying certificate emails Signed-off-by: Alex Cameron <asc@tetsuo.sh> * test: Add unit tests for verifying SANs Signed-off-by: Alex Cameron <asc@tetsuo.sh> * test: Update tests to use identity parameter Signed-off-by: Alex Cameron <asc@tetsuo.sh> * test: Add test to verify issuer and SAN at the same time Signed-off-by: Alex Cameron <asc@tetsuo.sh> * _utils, _verify: Create helper for checking SAN Signed-off-by: Alex Cameron <asc@tetsuo.sh> * _utils: Also check `OtherName` in SAN check Signed-off-by: Alex Cameron <asc@tetsuo.sh> * _utils: Fix OtherName check Signed-off-by: Alex Cameron <asc@tetsuo.sh> Signed-off-by: Alex Cameron <asc@tetsuo.sh>
- Loading branch information
1 parent
85a96dd
commit 2b26cf8
Showing
6 changed files
with
114 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
DO NOT MODIFY ME! | ||
|
||
this is "c.txt", a sample input for sigstore-python's unit tests. | ||
|
||
DO NOT MODIFY ME! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDwTCCA0igAwIBAgIUdXPCI40ren/SEkqxmHcCc6l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IQCn/JSbLxs0ds3Nycn0yINUQABeltbAmcYDFEn/sdm50gIg | ||
fm4lKdhXJoWHJRC8IS7MxYI3yR/oNzX6dntuqpHJ24YwCgYIKoZIzj0EAwMDZwAw | ||
ZAIwE0F3B/HgHn+ov6axOY0TMR/hv2DUVlC3qkGBQEEMtglf5qtT+a9g7aQ5g4pG | ||
of+JAjB+qUeUdSAyGPDK+5Ti6aROy0oAbwl+B3bH7QmmZ/i5M++PXIW4l4lcuAmA | ||
UkjTgLw= | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MGUCMAQYRaYOdZEOT3C3WP22sC9+2euiFGYbC4VNefWVL31+MAL7oKMWsHsBwh1ngjTZHAIxALuUf+mzlACBqYUSTTwl3LFIGUGl8g3Z6wkTMsqdI1NrtHj0rVpcWA1DIO4GhGOM5w== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters