Get a TLS certificate by hostname. This function will always connect to port 443.
Hostname to connect to (e.g. 'github.com') - not an URL
Timeout in milliseconds (default: 6000)
Buffer containing the raw certificate (DER)
AbortError if the request timed out
Get a TLS certificate by hostname. This function will always connect to port 443.