code: def get_environ(self, sock):
          
          cipher = sock.cipher()
          ssl_environ = {
              'wsgi.url_scheme': 'https',
              'HTTPS': 'on',
              'SSL_PROTOCOL': cipher[1],
              'SSL_CIPHER': cipher[0],
              # SSL_VERSION_INTERFACE     string  The mod_ssl program version
              # SSL_VERSION_LIBRARY   string  The OpenSSL program version
          }
  
          if self.context and self.context.verify_mode != ssl.CERT_NONE:
              client_cert = sock.getpeercert()
              if client_cert:
                  for cert_key, env_var in self.CERT_KEY_TO_ENV.items():
                      ssl_environ.update(
                          self.env_dn_dict(env_var, client_cert.get(cert_key)),
                      )
  
          return ssl_environ
docs: Create WSGI environ entries to be merged into each request.