Package pulp :: Package server :: Package auth :: Module certificate :: Class RedhatCertificate
[hide private]
[frames] | no frames]

Class RedhatCertificate

source code

 object --+    
          |    
Certificate --+
              |
             RedhatCertificate

Represents a Red Hat certificate.

Instance Methods [hide private]
 
update(self, content) source code
Extension
redhat(self)
Get the extension subtree for the redhat namespace.
source code
list
bogus(self)
Get whether the certificate contains bogus data or is otherwise unsuitable.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

    Inherited from Certificate
 
__cmp__(self, other) source code
 
__init__(self, content=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__repr__(self)
repr(x)
source code
 
__str__(self)
str(x)
source code
 
delete(self)
Delete the file associated with this certificate.
source code
Extensions
extensions(self)
Get custom extensions.
source code
Certificate
read(self, path)
Read a certificate file.
source code
str
serialNumber(self)
Get the serial number
source code
dict
subject(self)
Get the certificate subject.
source code
str
toPEM(self)
Get PEM representation of the certificate.
source code
boolean
valid(self)
Get whether the certificate is valid based on date.
source code
DateRange
validRange(self)
Get the valid date range.
source code
 
write(self, path)
Write the certificate.
source code
Class Variables [hide private]
str REDHAT = '1.3.6.1.4.1.2312.9'
The Red Hat base OID.
Instance Variables [hide private]
    Inherited from Certificate
X509 x509
The M2Crypto.X509 backing object.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

update(self, content)

source code 
Overrides: Certificate.update

redhat(self)

source code 

Get the extension subtree for the redhat namespace.

Returns: Extension
The extensions with the RH namespace trimmed.

bogus(self)

source code 

Get whether the certificate contains bogus data or is otherwise unsuitable. The certificate may be valid but still be considered bogus.

Returns: list
List of reasons if bogus
Overrides: Certificate.bogus
(inherited documentation)