Method Standards.X509.get_letsencrypt_cert()


Method get_letsencrypt_cert

array get_letsencrypt_cert(string host)

Description

Read and decode certificate chain for the given host from the letsencrypt directory (/etc/letsencrypt/live/{host}/). Note that the process has to have read privileges for the directory.

The resulting array can be used directly as input to the SSL.Context()->add_cert() method.

Returns
Array
Crypto.Sign.State 0

A signing object using the private key.

array(string) 1

An array of DER encoded certificates representing the certificate chain.