Builder
final class Builder (View source)
SSLOptions builder allows fluent configuration of ssl options.
Methods
build()
Builds SSL options.
withTrustedCerts(string ...$path)
Adds a trusted certificate. This is used to verify node's identity.
withVerifyFlags(int $flags)
Disable certificate verification.
withClientCert(string $path)
Set client-side certificate chain.
withPrivateKey(string $path, string|null $passphrase)
Set client-side private key. This is used to authenticate the client on the server-side.
Details
SSLOptions
build()
Builds SSL options.
Builder
withTrustedCerts(string ...$path)
Adds a trusted certificate. This is used to verify node's identity.
Builder
withVerifyFlags(int $flags)
Disable certificate verification.
Builder
withClientCert(string $path)
Set client-side certificate chain.
This is used to authenticate the client on the server-side. This should contain the entire Certificate chain starting with the certificate itself.
Builder
withPrivateKey(string $path, string|null $passphrase)
Set client-side private key. This is used to authenticate the client on the server-side.