Ńň
ě˙ŇXc @ sí d d k Z d d k Z d d k Z d d k i Z d d k l Z d d k l Z d Z d Z
d Z d Z d Z
d Z d
Z e d j oS e i e i i Z d i e Z e e Z e GHe
e GHe e GHn d S(
i˙˙˙˙N( t ipautil( t apii i s DNS namec C sR xK | i D]@ } | i t i j o' t d t i | i t i D Sq
Wd S( sr
Given a CSR return the subjectaltname value, if any.
The return value is a tuple of strings or None
c s s0 x) | ]" } | i t j o | i Vq q Wd S( N( t type_namet SAN_DNSNAMEt name( t .0R ( ( s1 /usr/lib/python2.6/site-packages/ipalib/pkcs10.pys ( s N( t
extensionst oid_tagt nsst SEC_OID_X509_SUBJECT_ALT_NAMEt tuplet
x509_alt_namet valuet AsObjectt None( t requestt extension( ( s1 /usr/lib/python2.6/site-packages/ipalib/pkcs10.pyt get_subjectaltname s
c C s | i S( sS
Given a CSR return the subject value.
This returns an nss.DN object.
( t subject( R ( ( s1 /usr/lib/python2.6/site-packages/ipalib/pkcs10.pyt get_subject. s c C sp d } | i d } | d j o d } | i d } n | d j o$ | i d } | | | | !} n | S( s2
Remove the header and footer from a CSR.
i( s' -----BEGIN NEW CERTIFICATE REQUEST-----i˙˙˙˙i$ s# -----BEGIN CERTIFICATE REQUEST-----i s -----END( t find( t csrt headerlent st e( ( s1 /usr/lib/python2.6/site-packages/ipalib/pkcs10.pyt strip_header6 s
c C sC t | } t i | } t i p t i n t i | S( su
Given a base64-encoded certificate request, with or without the
header/footer, return a request object.
( R t base64t b64decodeR t nss_is_initializedt
nss_init_nodbt CertificateRequest( R t substrate( ( s1 /usr/lib/python2.6/site-packages/ipalib/pkcs10.pyt load_certificate_requestE s
t __main__t ( t ost sysR t nss.nssR t ipapythonR t ipalibR t PEMt DERR R R R R t __name__R t stdint readlinest csrlinest joinR ( ( ( s1 /usr/lib/python2.6/site-packages/ipalib/pkcs10.pyt s(