|
|
|
__init__(self,
x509=None,
_pyfree=0) |
|
|
|
|
|
|
|
|
|
|
|
save_pem(self,
filename)
save_pem |
|
|
|
save(self,
filename,
format=1)
Saves X.509 certificate to a file. |
|
|
int
|
|
|
set_not_before(self,
asn1_utctime) |
|
|
|
set_not_after(self,
asn1_utctime) |
|
|
|
set_subject_name(self,
name) |
|
|
|
set_issuer_name(self,
name) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_pubkey(self,
pkey)
Set the public key for the certificate |
|
|
|
|
|
|
|
|
|
|
|
add_ext(self,
ext)
Add X509 extension to this certificate. |
|
|
|
get_ext(self,
name)
Get X509 extension by name. |
|
|
|
get_ext_at(self,
index)
Get X509 extension by index. |
|
|
|
get_ext_count(self)
Get X509 extension count. |
|
|
|
sign(self,
pkey,
md)
Sign the certificate. |
|
|
|
|
|
check_ca(self)
Check if the certificate is a Certificate Authority (CA) certificate. |
|
|
|
check_purpose(self,
id,
ca)
Check if the certificate's purpose matches the asked purpose. |
|
|
|
|