Enum TLSPeerValidationMode

Specifies how rigorously TLS peer certificates are validated.

The individual options can be combined using a bitwise "or". Usually it is recommended to use trustedCert for full validation.

The enum base type is int .

Enum members

Name Description
checkCert Check the certificate for basic validity.
checkPeer Validate the actual peer name/address against the certificate.
checkTrust Requires that the certificate or any parent certificate is trusted.
none Accept any peer regardless if and which certificate is presented.
requireCert Require the peer to always present a certificate.
trustedCert Require a valid and trusted certificate (strongly recommended).
validCert Require a valid certificate matching the peer name.

Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.