Upgrade Socket Object to TLS/SSL
ok = socko:ssl(isclient, [checkcerts])
Parameter | Type | Description |
---|---|---|
isclient |
boolean | True if client connection; False if this is server. |
checkcerts |
boolean | True to verify the certificate |
Returns | Type | Description |
---|---|---|
ok |
boolean | True if the socket is now TLS/SSL |
Only applicable to tcp_client
sockets (or sockets accepted on a tcp_server
)