Viewing File: /usr/lib/python2.7/site-packages/euca2ools/commands/iam/createsigningcertificate.pyc

ó
ĄôXc@sRddlZddlmZddlmZmZmZdefd„ƒYZdS(iĸĸĸĸN(tArg(t
IAMRequestt
AS_ACCOUNTtarg_usertCreateSigningCertificatec
BsqeZdZeddddƒeddddddd	ƒed
ddddddƒegZd„Zd
„Z	RS(s2[Eucalyptus only] Create a new signing certificatetnargst?thelpsWuser to create the signing
                     certificate for (default: current user)s--outtmetavartFILEtroute_tos2file to write the certificate to (default: stdout)s--keyouts2file to write the private key to (default: stdout)cCsĻ|jdrDt|jddƒ}|j|ddƒWdQXn|jdrĪtjdƒ}t|jddƒ}|j|ddƒWdQXtj|ƒndS(NtouttwtCertificatetCertificateBodytkeyouti?t
PrivateKey(targstopentwritetostumask(tselftresulttcertfilet	old_umasktkeyfile((sS/usr/lib/python2.7/site-packages/euca2ools/commands/iam/createsigningcertificate.pytpostprocess+s

cCsK|ddGH|jds*|ddGHn|jdsG|ddGHndS(NR
t
CertificateIdRRRR(R(RR((sS/usr/lib/python2.7/site-packages/euca2ools/commands/iam/createsigningcertificate.pytprint_result5s



N(
t__name__t
__module__tDESCRIPTIONRRtNoneRtARGSRR(((sS/usr/lib/python2.7/site-packages/euca2ools/commands/iam/createsigningcertificate.pyR!s		
(RtrequestbuilderRteuca2ools.commands.iamRRRR(((sS/usr/lib/python2.7/site-packages/euca2ools/commands/iam/createsigningcertificate.pyt<module>s
Back to Directory File Manager