def parse_account_key():
 LOGGER.info('Parsing account key...')
 proc = subprocess.Popen(['openssl rsa -in /tmp/account.key -noout -text'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
 (out, err) = proc.communicate()
 if (proc.returncode != 0):
  raise IOError('OpenSSL Error: {0}'.format(err))
 return out

def parse_account_key ( ) : LOGGER . info ( 'Parsing account key...' ) proc = subprocess . Popen ( [ 'openssl rsa -in /tmp/account.key -noout -text' ] , stdin = subprocess . PIPE , stdout = subprocess . PIPE , stderr = subprocess . PIPE , shell = True ) ( out , err ) = proc . communicate ( ) if ( proc . returncode != 0 ) : raise IOError ( 'OpenSSL Error: {0}' . format ( err ) ) return out
parse account key to get public key .