def register_account():
 LOGGER.info('Registering account...')
 (code, result) = _send_signed_request((DEFAULT_CA + '/acme/new-reg'), {'resource': 'new-reg', 'agreement': 'https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf'})
 if (code == 201):
  LOGGER.info('Registered!')
 elif (code == 409):
  LOGGER.info('Already registered!')
 else:
  raise ValueError('Error registering: {0} {1}'.format(code, result))

def register_account ( ) : LOGGER . info ( 'Registering account...' ) ( code , result ) = _send_signed_request ( ( DEFAULT_CA + '/acme/new-reg' ) , { 'resource' : 'new-reg' , 'agreement' : 'https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf' } ) if ( code == 201 ) : LOGGER . info ( 'Registered!' ) elif ( code == 409 ) : LOGGER . info ( 'Already registered!' ) else : raise ValueError ( 'Error registering: {0} {1}' . format ( code , result ) )
agree to le tos .