neon/testing
Types
Test certificate data for one side of a connection.
pub type CertData {
CertData(
cert: BitArray,
key: ssl.PrivateKey,
cacerts: List(BitArray),
)
}
Constructors
-
CertData( cert: BitArray, key: ssl.PrivateKey, cacerts: List(BitArray), )
Supported EC curves for test certificates.
pub type EcCurve {
Secp256r1
Secp384r1
Secp521r1
}
Constructors
-
Secp256r1 -
Secp384r1 -
Secp521r1
Values
pub fn pkix_test_data(
key_type: KeyType,
server_name: String,
) -> PkixTestData
Generates test certificate data for the given key type.
The server_name parameter sets the dNSName in the server’s peer
certificate. Use this same name as the SNI hostname when connecting
with verify_peer so the hostname check passes.