mirror of
https://github.com/apple/swift-certificates
synced 2026-11-29 05:04:21 +00:00
Add support for validating server hostnames and IP addresses (#171)
Motivation To make Swift Certificates useful for the Web PKI it's vital that we can validate that a particular certificate is authoritative for a specific domain. This requires a new verifier policy. Modifications Added ServerIdentityPolicy Added tests Result We can validate the identity of remote servers.
This commit is contained in:
1 parent
3b760c831b
commit
4975de4e97
5 files changed
+1206
-1
No files matched your search
@@ -31,7 +31,7 @@ here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
function replace_acceptable_years() {
|
||||
# this needs to replace all acceptable forms with 'YEARS'
|
||||
sed -e 's/20[12][789012]-20[12][890123]/YEARS/' -e 's/20[12][890123]/YEARS/'
|
||||
sed -e 's/20[12][78901234]-20[12][8901234]/YEARS/' -e 's/20[12][8901234]/YEARS/'
|
||||
}
|
||||
|
||||
printf "=> Checking for unacceptable language... "
|
||||
|
||||
Reference in new issue
Block a user