Server.setSslCertFile

Sets @server up to do https, using the SSL/TLS certificate specified by @ssl_cert_file and @ssl_key_file (which may point to the same file).

Alternatively, you can set the #SoupServer:tls-certificate property at construction time, if you already have a #GTlsCertificate.

class Server
bool
setSslCertFile
(,
string sslKeyFile
)

Parameters

sslCertFile string

path to a file containing a PEM-encoded SSL/TLS certificate.

sslKeyFile string

path to a file containing a PEM-encoded private key.

Return Value

Type: bool

success or failure.

Throws

GException on failure.

Meta

Since

2.48