certificate-matches? ( host certificate -- ? )


Vocabulary
io.sockets.secure.openssl

Inputs
hosta string
certificatean SSL peer certificate


Outputs
?a boolean


Word description
Checks the certificate identity against a DNS name or IP address. DNS subject alternative names take precedence over the common name, and a wildcard matches one nonempty label. IP addresses must match an IP subject alternative name. Host names containing a null character are rejected. Uses equivalent local checks when the SSL library lacks native identity checking functions.

Definition