Record: ClientSecureSocket
Provides configurations for facilitating secure communication with a remote HTTP endpoint.
Closed record
Fields
- enable boolean(default true)
- cert TrustStore | string?
- key KeyStore | CertKey?
- protocol record {| name Protocol, versions string[ ] |}?
- certValidation record {| 'type CertValidationType, cacheSize int, cacheValidityPeriod int |}?
- ciphers string[ ]?
- verifyHostName boolean(default true)
- handshakeTimeout decimal?
- sessionTimeout decimal?
Enable SSL validation
Configurations associated with crypto:TrustStore
or single certificate file that the client trusts
Configurations associated with crypto:KeyStore
or combination of certificate and private key of the client
SSL/TLS protocol related options
Certificate validation against OCSP_CRL, OCSP_STAPLING related options
List of ciphers to be used eg: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
Enable/disable host name verification
SSL handshake time out
SSL session time out