Merge pull request #135 from sanmai-NL/SNI

Document SAN requirement on certs
This commit is contained in:
ctz 2017-11-14 21:31:24 +00:00 committed by GitHub
commit 7205d8b9c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -168,6 +168,11 @@ impl ServerConfig {
/// certificate and key is used for all subsequent connections,
/// irrespective of things like SNI hostname.
///
/// Note that the end-entity certificate must have the
/// [Subject Alternative Name](https://tools.ietf.org/html/rfc6125#section-4.1)
/// extension to describe, e.g., the valid DNS name. The `commonName` field is
/// disregarded.
///
/// `cert_chain` is a vector of DER-encoded certificates.
/// `key_der` is a DER-encoded RSA private key.
pub fn set_single_cert(&mut self,