Skip to content

ResolvedTlsProfile

Defined in: src/profiles/resolveConnectionProfileSecrets.ts:23

TLS profile with certificate-bearing secret sources resolved.

  • Omit<TlsProfile, "ca" | "cert" | "key" | "passphrase" | "pfx">
PropertyTypeDescriptionInherited fromDefined in
ca?| SecretValue | SecretValue[]Resolved certificate authority bundle.-src/profiles/resolveConnectionProfileSecrets.ts:28
cert?SecretValueResolved client certificate PEM.-src/profiles/resolveConnectionProfileSecrets.ts:30
checkServerIdentity?(host: string, cert: PeerCertificate) => Error | undefinedOptional custom server identity checker for private PKI or certificate pinning.TlsProfile.checkServerIdentitysrc/types/public.ts:196
key?SecretValueResolved client private key PEM.-src/profiles/resolveConnectionProfileSecrets.ts:32
maxVersion?SecureVersionMaximum TLS protocol version accepted by the client.TlsProfile.maxVersionsrc/types/public.ts:182
minVersion?SecureVersionMinimum TLS protocol version accepted by the client.TlsProfile.minVersionsrc/types/public.ts:180
passphrase?SecretValueResolved encrypted private-key or PFX/P12 passphrase.-src/profiles/resolveConnectionProfileSecrets.ts:34
pfx?SecretValueResolved PFX/P12 client certificate bundle.-src/profiles/resolveConnectionProfileSecrets.ts:36
pinnedFingerprint256?string | readonly string[]Optional. Expected server certificate SHA-256 fingerprint(s) for certificate pinning, in hex form with or without colons. When present, the TLS handshake additionally requires the leaf certificate’s SHA-256 fingerprint to match one of these values. Not required for normal CA-trusted endpoints - public CAs and ca bundles already gate trust via rejectUnauthorized. Pinning is recommended for production when you control the server and want defence-in-depth against rogue certificates issued by trusted CAs. Example "AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99"TlsProfile.pinnedFingerprint256src/types/public.ts:194
rejectUnauthorized?booleanWhether TLS certificate validation is required. Defaults to true.TlsProfile.rejectUnauthorizedsrc/types/public.ts:178
servername?stringServer name used for SNI and certificate identity checks. Defaults to the profile host.TlsProfile.servernamesrc/types/public.ts:176