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
docstr: This function returns the certificate, primary issuer, and primary ocsp
  server in the chain for a socket already wrapped with ssl.
docstr_tok: ["This","function","returns","the","certificate",",","primary","issuer",",","and","primary","ocsp","server","in","the","chain","for","a","socket","already","wrapped","with","ssl","."]
code: def components_from_socket(self):
      """This function returns the certificate, primary issuer, and primary ocsp
      server in the chain for a socket already wrapped with ssl.
      """
  
      # convert the binary certifcate to text
      der = self.SOCK.getpeercert(True)
      if der is False:
          raise ConnectionError("no certificate found for ssl peer")
      cert = self._bin2ascii(der)
      return self._certificate_components(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 3 for calling the OCSPVerifier obj's underlying member method code with example usage: obj.components_from_socket() and returns: self