From f317f13989277dd842ded8a4f6e39dad6b5c0be8 Mon Sep 17 00:00:00 2001 From: John McCrae Date: Wed, 18 May 2022 09:02:14 +0600 Subject: [PATCH] Redirect for when the cert is not found. Signed-off-by: John McCrae --- lib/win32/certstore/store_base.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/win32/certstore/store_base.rb b/lib/win32/certstore/store_base.rb index 0f37db2..790e994 100644 --- a/lib/win32/certstore/store_base.rb +++ b/lib/win32/certstore/store_base.rb @@ -96,6 +96,7 @@ def cert_get(certificate_thumbprint) validate_thumbprint(certificate_thumbprint) thumbprint = update_thumbprint(certificate_thumbprint) cert_pem = get_cert_pem(thumbprint) + return cert_pem if cert_pem == "Certificate Not Found" cert_pem = format_pem(cert_pem) verify_certificate(cert_pem) build_openssl_obj(cert_pem)