Go/src/crypto/tls/common.go:289

// ClientAuth determines the server's policy for
// TLS Client Authentication. The default is NoClientCert.
ClientAuth ClientAuthType
// ClientAuthType declares the policy the server will follow for
// TLS Client Authentication.
type ClientAuthType int

const (
// NoClientCert indicates that no client certificate should be requested
// during the handshake, and if any certificates are sent they will not
// be verified.
NoClientCert ClientAuthType = iota
// RequestClientCert indicates that a client certificate should be requested
// during the handshake, but does not require that the client send any
// certificates.
RequestClientCert
// RequireAnyClientCert indicates that a client certificate should be requested
// during the handshake, and that at least one certificate is required to be
// sent by the client, but that certificate is not required to be valid.
RequireAnyClientCert
// VerifyClientCertIfGiven indicates that a client certificate should be requested
// during the handshake, but does not require that the client sends a
// certificate. If the client does send a certificate it is required to be
// valid.
VerifyClientCertIfGiven
// RequireAndVerifyClientCert indicates that a client certificate should be requested
// during the handshake, and that at least one valid certificate is required
// to be sent by the client.
RequireAndVerifyClientCert
)

 

 

The Ultimate Guide to SSL/TLS Client Authentication: Know How it Works https://aboutssl.org/ssl-tls-client-authentication-how-does-it-works/

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2021-08-09
  • 2021-09-02
  • 2021-11-25
  • 2021-07-14
猜你喜欢
  • 2021-05-27
  • 2021-05-08
  • 2021-12-05
  • 2022-12-23
相关资源
相似解决方案