class_docstr: A class to verify ssl sockets for RFC6960/RFC6961. This can be used
  when using direct validation of OCSP responses and certificate revocations.
  
  @see https://datatracker.ietf.org/doc/html/rfc6960
  @see https://datatracker.ietf.org/doc/html/rfc6961
class_docstr_tok: ["A","class","to","verify","ssl","sockets","for","RFC6960\/RFC6961",".","This","can","be","used","when","using","direct","validation","of","OCSP","responses","and","certificate","revocations",".","@","see","https",":","\/\/datatracker.ietf.org\/doc\/html\/rfc6960","@","see","https",":","\/\/datatracker.ietf.org\/doc\/html\/rfc6961"]
docstr: Convert SSL certificates in a binary (DER) format to ASCII PEM.
docstr_tok: ["Convert","SSL","certificates","in","a","binary","(","DER",")","format","to","ASCII","PEM","."]
code: def _bin2ascii(self, der):
      """Convert SSL certificates in a binary (DER) format to ASCII PEM."""
  
      pem = ssl.DER_cert_to_PEM_cert(der)
      cert = x509.load_pem_x509_certificate(
          pem.encode(), backends.default_backend()
      )
      return cert
  
imports: import base64
  import datetime
  import ssl
  from urllib.parse import urljoin, urlparse
  import cryptography.hazmat.primitives.hashes
  import requests
  from cryptography import hazmat, x509
  from cryptography.exceptions import InvalidSignature
  from cryptography.hazmat import backends
  from cryptography.hazmat.primitives.asymmetric.dsa import DSAPublicKey
  from cryptography.hazmat.primitives.asymmetric.ec import ECDSA, EllipticCurvePublicKey
  from cryptography.hazmat.primitives.asymmetric.padding import PKCS1v15
  from cryptography.hazmat.primitives.asymmetric.rsa import RSAPublicKey
  from cryptography.hazmat.primitives.hashes import SHA1, Hash
  from cryptography.hazmat.primitives.serialization import Encoding, PublicFormat
  from cryptography.x509 import ocsp
  from redis.exceptions import AuthorizationError, ConnectionError
label_desc: Use image node_id 2 for calling the OCSPVerifier obj's underlying member method code with example usage: obj._bin2ascii(der) and returns: cert