Skip to content

Commit 6f8b211

Browse files
committed
Issue diagnostic if cert verification won't work
1 parent e5bf9b4 commit 6f8b211

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/verifier.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ impl ServerVerifier {
8282
) -> Result<(), Error> {
8383
let end_entity = ParsedCertificate::try_from(end_entity)?;
8484
let root_store = self.x509_store.root_store()?;
85+
if root_store.is_empty() {
86+
log::warn!("X509_STORE has no cached certificates");
87+
}
8588

8689
verify_server_cert_signed_by_trust_anchor(
8790
&end_entity,

0 commit comments

Comments
 (0)