diff --git a/lib/cli/pkiutility.cpp b/lib/cli/pkiutility.cpp index ea893e2aa..834cdcca1 100644 --- a/lib/cli/pkiutility.cpp +++ b/lib/cli/pkiutility.cpp @@ -319,11 +319,11 @@ String PkiUtility::GetCertificateInformation(const boost::shared_ptr& cert pre = "\n Valid From: "; BIO_write(out, pre.CStr(), pre.GetLength()); - ASN1_TIME_print(out, X509_get_notBefore(cert)); + ASN1_TIME_print(out, X509_get_notBefore(cert.get())); pre = "\n Valid Until: "; BIO_write(out, pre.CStr(), pre.GetLength()); - ASN1_TIME_print(out, X509_get_notAfter(cert)); + ASN1_TIME_print(out, X509_get_notAfter(cert.get())); pre = "\n Fingerprint: "; BIO_write(out, pre.CStr(), pre.GetLength());