def init_save_csr(privkey, names, path, csrname='csr-certbot.pem'):
 config = zope.component.getUtility(interfaces.IConfig)
 (csr_pem, csr_der) = make_csr(privkey.pem, names, must_staple=config.must_staple)
 util.make_or_verify_dir(path, 493, os.geteuid(), config.strict_permissions)
 (csr_f, csr_filename) = util.unique_file(os.path.join(path, csrname), 420, 'wb')
 csr_f.write(csr_pem)
 csr_f.close()
 logger.info('Creating CSR: %s', csr_filename)
 return util.CSR(csr_filename, csr_der, 'der')

def init_save_csr ( privkey , names , path , csrname = 'csr-certbot.pem' ) : config = zope . component . getUtility ( interfaces . IConfig ) ( csr_pem , csr_der ) = make_csr ( privkey . pem , names , must_staple = config . must_staple ) util . make_or_verify_dir ( path , 493 , os . geteuid ( ) , config . strict_permissions ) ( csr_f , csr_filename ) = util . unique_file ( os . path . join ( path , csrname ) , 420 , 'wb' ) csr_f . write ( csr_pem ) csr_f . close ( ) logger . info ( 'Creating CSR: %s' , csr_filename ) return util . CSR ( csr_filename , csr_der , 'der' )
initialize a csr with the given private key .