UNPKG

acme-http-01-azure-key-vault-middleware

Version:

Use Let's Encrypt and other RFC 8555 providers natively and securely on Azure

8 lines (6 loc) 214 B
module.exports = function toBase64URL(data) { if (typeof data === 'string') { data = Buffer.from(data); } return data.toString('base64').replace(/\+/gu, '-').replace(/\//gu, '_').replace(/=*$/u, ''); };