This commit is contained in:
Igor Anić 2025-11-23 22:56:58 +00:00 committed by GitHub
commit 4ed62325c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -641,7 +641,14 @@ pub fn init(input: *Reader, output: *Writer, options: Options) InitError!Client
// certificate_verify message later.
try main_cert_pub_key.init(subject.pub_key_algo, subject.pubKey());
} else {
try prev_cert.verify(subject, now_sec);
prev_cert.verify(subject, now_sec) catch |err| switch (err) {
error.CertificateIssuerMismatch => {
// Skip certificate which is not part of the chain
cert_index += 1;
continue;
},
else => |e| return e,
};
}
switch (options.ca) {