def sign_certificate():
 LOGGER.info('Signing certificate...')
 proc = subprocess.Popen(['openssl req -in /tmp/domain.csr -outform DER'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
 (csr_der, err) = proc.communicate()
 (code, result) = _send_signed_request((DEFAULT_CA + '/acme/new-cert'), {'resource': 'new-cert', 'csr': _b64(csr_der)})
 if (code != 201):
  raise ValueError('Error signing certificate: {0} {1}'.format(code, result))
 LOGGER.info('Certificate signed!')
 return result

def sign_certificate ( ) : LOGGER . info ( 'Signing certificate...' ) proc = subprocess . Popen ( [ 'openssl req -in /tmp/domain.csr -outform DER' ] , stdout = subprocess . PIPE , stderr = subprocess . PIPE , shell = True ) ( csr_der , err ) = proc . communicate ( ) ( code , result ) = _send_signed_request ( ( DEFAULT_CA + '/acme/new-cert' ) , { 'resource' : 'new-cert' , 'csr' : _b64 ( csr_der ) } ) if ( code != 201 ) : raise ValueError ( 'Error signing certificate: {0} {1}' . format ( code , result ) ) LOGGER . info ( 'Certificate signed!' ) return result
get the new certificate .