Home | History | Annotate | Download | only in webpagereplay

Lines Matching refs:cert

20   cert:  a crypto.X509 certificate (w/ just the pub key)
21 cert_str: a certificate string (w/ just the pub cert)
91 """Loads obj cert object from string."""
100 def _dump_cert(cert, filetype=FILETYPE_PEM):
101 """Dumps obj cert object to string."""
102 return crypto.dump_certificate(filetype, cert)
109 subject: a string representing the desired root cert issuer
149 def verify_cb(conn, cert, errnum, depth, ok):
150 host_certs.append(cert)
179 mycert-cert.pem - CA in PEM format
180 mycert-cert.cer - CA for Android
181 mycert-cert.p12 - CA in PKCS12 format for Windows devices
192 ca_cert_path = root_path + '-cert.pem'
193 android_cer_path = root_path + '-cert.cer'
194 windows_p12_path = root_path + '-cert.p12'
224 root_ca_cert_str: PEM formatted string representing the root cert
225 server_cert_str: PEM formatted string representing cert
235 cert = load_cert(server_cert_str)
236 common_name = cert.get_subject().commonName
238 cert = crypto.X509()
248 cert.gmtime_adj_notBefore(-60 * 60)
249 cert.gmtime_adj_notAfter(60 * 60 * 24 * 30)
250 cert.set_issuer(ca_cert.get_subject())
251 cert.set_subject(req.get_subject())
252 cert.set_serial_number(int(time.time()*10000))
253 cert.set_pubkey(req.get_pubkey())
254 cert.sign(key, 'sha256')
256 return _dump_cert(cert)