HEX
Server: Apache
System: Linux 162-240-236-42.bluehost.com 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
User: bt667 (1004)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/euca2ools/commands/misc/generatekeyfingerprint.pyo
�
��Xc@sbddlZddlZddlmZddlmZddlmZdefd��YZdS(i����N(tArg(tBaseCommand(t	Euca2oolstGenerateKeyFingerprintcBsAeZdZeZeddddd�gZd�Zd�ZRS(s�Show the fingerprint of a private key as it would appear in the output of euca-describe-keypairs.

Note that this will differ from the key's SSH key fingerprint.tprivkey_filenametmetavartFILEthelps*file containing the private key (required)c	s�tjddd|jdddddfd	tj�}|j�d
}|jrhtj|jd��ntj|�j	��dj
�fd�td
t��d
�D��S(Ntopenssltpkcs8s-inRs-nocrypts-topk8s-outformtDERtstdoutit:c3s |]}�||d!VqdS(iN((t.0ti(tfprint(sR/usr/lib/python2.7/site-packages/euca2ools/commands/misc/generatekeyfingerprint.pys	<genexpr>3si(
t
subprocesstPopentargstPIPEtcommunicatet
returncodetCalledProcessErrorthashlibtsha1t	hexdigesttjointrangetlen(tselfR	tprivkey((RsR/usr/lib/python2.7/site-packages/euca2ools/commands/misc/generatekeyfingerprint.pytmain+s	cCs	|GHdS(N((RR((sR/usr/lib/python2.7/site-packages/euca2ools/commands/misc/generatekeyfingerprint.pytprint_result6s(	t__name__t
__module__tDESCRIPTIONRtSUITERtARGSRR (((sR/usr/lib/python2.7/site-packages/euca2ools/commands/misc/generatekeyfingerprint.pyR#s	(	RRtrequestbuilderRtrequestbuilder.commandRteuca2ools.commandsRR(((sR/usr/lib/python2.7/site-packages/euca2ools/commands/misc/generatekeyfingerprint.pyt<module>s