]> git.proxmox.com Git - proxmox-acme.git/commit
eba: support decoding MAC key provided in base64url format
authorYU Jincheng <shana@zju.edu.cn>
Thu, 25 Jan 2024 08:28:01 +0000 (16:28 +0800)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Feb 2024 08:51:51 +0000 (09:51 +0100)
commit5cff218218a6183d821466983495e3df267742e3
treec53ffa2c60fba02451f7b18b10e8acadbd509efe
parenta75d50b847dfb812279563d63fa50b82103aa879
eba: support decoding MAC key provided in base64url format

According to RFC 8555:

> The MAC key SHOULD be provided in base64url-encoded form...

However, currently we are only decoding the MAC key as base64.
This patch chooses the correct function to decode the user provided
MAC key. This can fix authentication error when a user uses command
`pvenode acme account register` and paste the EBA MAC key as prompted.

Signed-off-by: YU Jincheng <shana@zju.edu.cn>
Tested-by: Folke Gleumes <f.gleumes@proxmox.com>
 [ TL: fix typo in message, reword subject ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/ACME.pm