Lines Matching refs:key
23 key = None variable in Certificate
24 def __init__(self, cert, key): argument
26 self.key = key
32 return crypto.dump_privatekey(crypto.FILETYPE_PEM, self.key)
48 key = crypto.load_privatekey(crypto.FILETYPE_PEM, data)
49 return Certificate(cert, key)
52 def create(cn, issuer=None, key=None, keysize=2048, digest="sha256", argument
55 if key is None:
56 key = crypto.PKey()
57 key.generate_key(crypto.TYPE_RSA, keysize)
60 cert.set_pubkey(key)
74 signing_key = key if issuer is None else issuer.key
77 return Certificate(cert, key)
82 a_sha1 = Certificate.create("Root A", key=a.key, digest="sha1")
84 a_to_b = Certificate.create("Root A", b, a.key)
85 b_to_a = Certificate.create("Root B", a, b.key)
88 intermediate_b = Certificate.create("intermediate", b, intermediate_a.key)