Commits

Andreas Heck committed 18db426

Adds support for SSL_CLIENT_CERT variable

Comments (0)

Files changed (1)

                     dn.append(subject['emailAddress'])
 
                 env['SSL_CLIENT_S_DN'] = ''.join(dn)
+
+                client_cert = self.socket.getpeercert(binary_form=True)
+                if client_cert is not None:
+                    client_cert = ssl.DER_cert_to_PEM_cert(client_cert)
+                    env['SSL_CLIENT_CERT'] = client_cert
         return env