Skip to content

Commit b378f2e

Browse files
committed
feat: Support Private CA for server certificates.
1 parent 20a12da commit b378f2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/socket.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export function validateCertificate(
3636
dnsName: string
3737
) {
3838
return (hostname: string, cert: tls.PeerCertificate): Error | undefined => {
39-
if (serverCaMode === 'GOOGLE_MANAGED_CAS_CA') {
39+
if (serverCaMode === 'GOOGLE_MANAGED_CAS_CA'
40+
|| serverCaMode === 'CUSTOMER_MANAGED_CAS_CA') {
4041
return tls.checkServerIdentity(dnsName, cert);
4142
}
4243
if (!cert || !cert.subject) {

0 commit comments

Comments
 (0)