Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Create

static func Create(certificatePem: byte[], privateKeyPem: byte[]) -> Result<SslServerAuthenticationOptions, SslError>

Declaring type: SslServerAuthenticationOptions
Module: System.Networking.Security
Assembly: System.Networking.dll
Source file: SslOptions.rvn

Validates the PEM chain and matching unencrypted private key without retaining input arrays.

Parameters

Name Type Description
certificatePem Byte[]
privateKeyPem Byte[]

Return value

Result<SslServerAuthenticationOptions, SslError>