#NEWLINE# def main( x509_file , out = 'keys.jwk' ) : #NEWLINE# #INDENT# pb = PBase ( ) #NEWLINE# ks = KeyStore ( pb . http_request ) #NEWLINE# key = x509_rsa_loads ( open ( x509_file ) . read ( ) ) #NEWLINE# ks . add_key ( pb , 'rsa' , 'sig' ) #NEWLINE# f = open ( out , 'w' ) #NEWLINE# txt = ks . dumps ( 'sig' ) #NEWLINE# f . write ( txt ) #NEWLINE# f . close ( )