forked from openssl/openssl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add a test for URIs with userinfo
- Loading branch information
1 parent
051a3f2
commit b44cdb3
Showing
2 changed files
with
16 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -411,6 +411,18 @@ REQMASK=MASK:0x800 ./mkcert.sh req badalt7-key "O = Bad NC Test Certificate 7" \ | |
"email.1 = [email protected]" "email.2 = [email protected]" \ | ||
"IP = 127.0.0.1" "IP = 192.168.0.1" | ||
|
||
# NC CA4 only permits URIs matching good.org. | ||
|
||
NC="permitted;URI:good.org" | ||
NC=$NC ./mkcert.sh genca "Test NC CA 4" ncca4-key ncca4-cert root-key root-cert | ||
|
||
# A certificate with an URI SAN | ||
./mkcert.sh req alt1-key "O = Good NC Test Certificate 1" \ | ||
"CN=Joe Bloggs" | \ | ||
./mkcert.sh geneealt nc-uri-key nc-uri-cert ncca4-key ncca4-cert \ | ||
"URI.1 = foo://%[email protected]" \ | ||
"URI.2 = bar://[email protected]/baz/quux" | ||
|
||
# Certs for CVE-2022-4203 testcase | ||
|
||
NC="excluded;otherName:SRVName;UTF8STRING:[email protected]" ./mkcert.sh genca \ | ||
|
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