Lines Matching refs:cert
585 static void ssl_print_cert_info(BIO *bio, X509 *cert)
591 BIO_printf(bio, "Certificate version: %ld\n", X509_get_version(cert)+1);
593 ASN1_UTCTIME_print(bio, X509_get_notBefore(cert));
597 ASN1_UTCTIME_print(bio, X509_get_notAfter(cert));
600 pk = X509_get_pubkey(cert);
605 dn = X509_get_issuer_name(cert);
609 dn=X509_get_subject_name(cert);
614 BIO_printf(bio, "Extension Count: %d\n", X509_get_ext_count(cert));
620 X509 *cert;
628 cert = (X509 *)SK_VALUE(sk, i);
629 ssl_print_cert_info(bio_out, cert);
632 cert = SSL_get_peer_certificate(c->ssl);
633 if (cert == NULL) {
637 ssl_print_cert_info(bio_out, cert);
638 X509_free(cert);
660 X509 *cert;
665 cert = SSL_get_peer_certificate(c->ssl);
666 if (cert)
667 pk_bits = EVP_PKEY_bits(X509_get_pubkey(cert));