%PDF- %PDF-
Direktori : /proc/self/root/lib/python2.7/site-packages/euca2ools/commands/misc/ |
Current File : //proc/self/root/lib/python2.7/site-packages/euca2ools/commands/misc/generatekeyfingerprint.pyc |
� ��Xc @ sb d d l Z d d l Z d d l m Z d d l m Z d d l m Z d e f d � � YZ d S( i����N( t Arg( t BaseCommand( t Euca2oolst GenerateKeyFingerprintc B sA e Z d Z e Z e d d d d d �g Z d � Z d � Z RS( 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.t privkey_filenamet metavart FILEt helps* file containing the private key (required)c s� t j d d d | j d d d d d f d t j �} | j � d } | j rh t j | j d � � n t j | � j � � d j � f d � t d t � � d � D� � S( Nt opensslt pkcs8s -inR s -nocrypts -topk8s -outformt DERt stdouti t :c 3 s | ] } � | | d !Vq d S( i N( ( t .0t i( t fprint( sR /usr/lib/python2.7/site-packages/euca2ools/commands/misc/generatekeyfingerprint.pys <genexpr>3 s i ( t subprocesst Popent argst PIPEt communicatet returncodet CalledProcessErrort hashlibt sha1t hexdigestt joint ranget len( t selfR t privkey( ( R sR /usr/lib/python2.7/site-packages/euca2ools/commands/misc/generatekeyfingerprint.pyt main+ s c C s | GHd S( N( ( R R ( ( sR /usr/lib/python2.7/site-packages/euca2ools/commands/misc/generatekeyfingerprint.pyt print_result6 s ( t __name__t __module__t DESCRIPTIONR t SUITER t ARGSR R ( ( ( sR /usr/lib/python2.7/site-packages/euca2ools/commands/misc/generatekeyfingerprint.pyR # s ( R R t requestbuilderR t requestbuilder.commandR t euca2ools.commandsR R ( ( ( sR /usr/lib/python2.7/site-packages/euca2ools/commands/misc/generatekeyfingerprint.pyt <module> s