Package arcjobtool :: Module CertUtils :: Class CertificateRequest
[hide private]
[frames] | no frames]

Class CertificateRequest

source code


Class for generating a grid certificate request.

Basic structure and procedures are modeled after the grid-cert-request script from the Globus project.

Instance Methods [hide private]
 
__init__(self, domain='', name='', email='')
Class constructor
source code
 
__processLine(self, line)
Convert characters and variables to a Python format.
source code
 
__readCAInfo(self)
Extract CA info from /etc/grid-security.conf
source code
 
__readDirectionsText(self)
Read directions template from /etc/grid-security if it exists.
source code
 
__createRandomData(self)
Create semi random data for use when generating keys.
source code
 
__setupDefaultDirs(self)
Setup default dirs for cert request generation.
source code
 
__createRequestDir(self)
Create temporary request directory for storing the new certificate request.
source code
 
checkPendingRequests(self)
Check for existing certificate requests.
source code
 
loadRequest(self, requestDir)
Load existing request information.
source code
 
checkPassphrase(self, passphrase) source code
 
generate(self, passphrase='')
Generates private key and certificate request.
source code
 
signingStatus(self)
Return current signing status for loaded request
source code
 
isUnknown(self) source code
 
isSent(self) source code
 
isSigned(self) source code
 
isGenerated(self) source code
 
isLoaded(self) source code
 
isGlobusConfigOk(self)
Check that we have needed request configuration files.
source code
 
updateStatus(self, status)
Update the signing process status.
source code
 
sendSigningRequest(self)
Send certificate request for signing.
source code
 
updateCertificate(self, certificateText)
Update certificate file with signed certificate.
source code
 
hasExistingCredentials(self)
Check for existing credentials.
source code
 
installCertAndKey(self)
Copy user key and certificate into certificate directory.
source code
 
removeCurrentRequestDir(self)
Remove current request directory
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, domain='', name='', email='')
(Constructor)

source code 

Class constructor

Overrides: object.__init__

__createRequestDir(self)

source code 

Create temporary request directory for storing the new certificate request. Format $HOME/.globus/uicertreq.request.XXXXXX

installCertAndKey(self)

source code 

Copy user key and certificate into certificate directory. Remove certificate request directory.