@utils.arg('filename', metavar='<filename>', nargs='?', default='cacert.pem', help=_('Filename to write the x509 root cert.'))
def do_x509_get_root_cert(cs, args):
 if os.path.exists(args.filename):
  raise exceptions.CommandError((_('Unable to write x509 root cert -                                       %s exists.') % args.filename))
 with open(args.filename, 'w') as cert:
  cacert = cs.certs.get()
  cert.write(cacert.data)
  print((_('Wrote x509 root cert to %s') % args.filename))

@ utils . arg ( 'filename' , metavar = '<filename>' , nargs = '?' , default = 'cacert.pem' , help = _ ( 'Filename to write the x509 root cert.' ) ) def do_x509_get_root_cert ( cs , args ) : if os . path . exists ( args . filename ) : raise exceptions . CommandError ( ( _ ( 'Unable to write x509 root cert -                                       %s exists.' ) % args . filename ) ) with open ( args . filename , 'w' ) as cert : cacert = cs . certs . get ( ) cert . write ( cacert . data ) print ( ( _ ( 'Wrote x509 root cert to %s' ) % args . filename ) )
fetch the x509 root cert .