Ńň ě˙ŇXc@síddkZddkZddkZddkiZddklZddklZdZ dZ dZ d„Z d„Z d „Zd „Zed joSeiƒeiiƒZd ieƒZeeƒZeGHe eƒGHe eƒGHndS( i˙˙˙˙N(tipautil(tapiiisDNS namecCsRxK|iD]@}|itijo'td„ti|itiƒDƒƒSq WdS(sr Given a CSR return the subjectaltname value, if any. The return value is a tuple of strings or None css0x)|]"}|itjo |iVqqWdS(N(t type_namet SAN_DNSNAMEtname(t.0R((s1/usr/lib/python2.6/site-packages/ipalib/pkcs10.pys (s N( t extensionstoid_tagtnsstSEC_OID_X509_SUBJECT_ALT_NAMEttuplet x509_alt_nametvaluetAsObjecttNone(trequestt extension((s1/usr/lib/python2.6/site-packages/ipalib/pkcs10.pytget_subjectaltname s   cCs|iS(sS Given a CSR return the subject value. This returns an nss.DN object. (tsubject(R((s1/usr/lib/python2.6/site-packages/ipalib/pkcs10.pyt get_subject.scCspd}|idƒ}|djod}|idƒ}n|djo$|idƒ}||||!}n|S(s2 Remove the header and footer from a CSR. i(s'-----BEGIN NEW CERTIFICATE REQUEST-----i˙˙˙˙i$s#-----BEGIN CERTIFICATE REQUEST-----is-----END(tfind(tcsrt headerlentste((s1/usr/lib/python2.6/site-packages/ipalib/pkcs10.pyt strip_header6s  cCsCt|ƒ}ti|ƒ}tiƒptiƒnti|ƒS(su Given a base64-encoded certificate request, with or without the header/footer, return a request object. (Rtbase64t b64decodeRtnss_is_initializedt nss_init_nodbtCertificateRequest(Rt substrate((s1/usr/lib/python2.6/site-packages/ipalib/pkcs10.pytload_certificate_requestEs   t__main__t(tostsysRtnss.nssRt ipapythonRtipalibRtPEMtDERRRRRR t__name__Rtstdint readlinestcsrlinestjoinR(((s1/usr/lib/python2.6/site-packages/ipalib/pkcs10.pyts(