Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
ciecplib 0.9.0
ciecplib 0.9.0
  • Installation

Modules

  • ciecplib
    • get
    • get_cert
    • get_cookie
    • head
    • post
    • Session
  • ciecplib.cookies
    • extract_session_cookie
    • has_session_cookies
    • load_cookiejar
    • ECPCookieJar
  • ciecplib.kerberos
    • find_principal
    • has_credential
    • realm
  • ciecplib.utils
    • get_ecpcookie_path
    • get_idp_url
    • get_idps
    • get_x509_proxy_path
    • random_string
    • EcpIdentityProvider
  • ciecplib.x509
    • check_cert
    • generate_proxy
    • load_cert
    • load_pkcs12
    • print_cert_info
    • time_left
    • write_cert

Command-line scripts

  • ecp-cert-info
  • ecp-curl
  • ecp-get-cert
  • ecp-get-cookie
Back to top
View this page

print_cert_info¶

ciecplib.x509.print_cert_info(x509, path=None, display=None, verbose=True, stream=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)¶

Print info about an X.509 certificate.

Parameters:
  • x509 (cryptography.x509.Certificate) – the certificate to parse

  • path (str, optional) – the path of the certificate file on disk

  • display (list, optional) – list of certificate parameters to display; if given each is displayed in order in plaintext

  • verbose (bool, optional) – if True (default) print the full text of the certificate

  • stream (file, optional) – the file object to print to, defaults to sys.stdout

Next
time_left
Previous
load_pkcs12
Copyright © 2025, Cardiff University
Made with Sphinx and @pradyunsg's Furo
On this page
  • print_cert_info
    • print_cert_info()