From 5c2b5ecd373eda106bd2b5214724a12b82a5421b Mon Sep 17 00:00:00 2001 From: John McCrae Date: Tue, 7 Dec 2021 10:16:39 -0800 Subject: [PATCH] Refactored cert_get to return x509 object Signed-off-by: John McCrae --- lib/win32/certstore/store_base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/win32/certstore/store_base.rb b/lib/win32/certstore/store_base.rb index 3ed2c2f..01aff63 100644 --- a/lib/win32/certstore/store_base.rb +++ b/lib/win32/certstore/store_base.rb @@ -98,7 +98,7 @@ def cert_get(certificate_thumbprint) cert_pem = get_cert_pem(thumbprint) cert_pem = format_pem(cert_pem) verify_certificate(cert_pem) - cert_pem + build_openssl_obj(cert_pem) end # Listing certificate of open certstore and return list in json