Home | History | Annotate | Download | only in web-page-replay

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)
93 """Loads obj cert object from string."""
102 def _dump_cert(cert, filetype=FILETYPE_PEM):
103 """Dumps obj cert object to string."""
104 return crypto.dump_certificate(filetype, cert)
111 subject: a string representing the desired root cert issuer
152 def verify_cb(conn, cert, errnum, depth, ok):
153 host_certs.append(cert)
182 mycert-cert.pem - CA in PEM format
183 mycert-cert.cer - CA for Android
184 mycert-cert.p12 - CA in PKCS12 format for Windows devices
195 ca_cert_path = root_path + '-cert.pem'
196 android_cer_path = root_path + '-cert.cer'
197 windows_p12_path = root_path + '-cert.p12'
227 root_ca_cert_str: PEM formatted string representing the root cert
228 server_cert_str: PEM formatted string representing cert
251 cert = crypto.X509()
252 cert.get_subject().CN = common_name
253 cert.gmtime_adj_notBefore(-60 * 60)
254 cert.gmtime_adj_notAfter(60 * 60 * 24 * 30)
255 cert.set_issuer(ca_cert.get_subject())
256 cert.set_serial_number(int(time.time()*10000))
257 cert.set_pubkey(ca_key)
258 cert.add_extensions(reused_extensions)
259 cert.sign(ca_key, 'sha256')
261 return _dump_cert(cert)