Scoop API

scoop:scoop.tls.asyncio:0.1.0

openTlsClientContext

function openTlsClientContext

source · line 42
public
public suspend fun openTlsClientContext(caFile: Path, options: TlsOptions = TlsOptions(), identity: TlsIdentity? = None): TlsClientContext

Creates a TLS client context for the current event loop and job. System trust loading runs as managed blocking work; the CA-file overload reads the file asynchronously. The returned context must be closed after use.

function openTlsClientContext

source · line 13
public
public suspend fun openTlsClientContext(trust: TlsTrustSource = TlsTrustSource.System, options: TlsOptions = TlsOptions(), identity: TlsIdentity? = None): TlsClientContext

Creates a TLS client context for the current event loop and job. System trust loading runs as managed blocking work; the CA-file overload reads the file asynchronously. The returned context must be closed after use.