Using the “Upload GPG Signing Key for Distribution” REST API here, upload the above key pair to Distribution to sign release bundles.
root@dd4846e7fd13:~# curl -uadmin:password -H "Accept: application/json" -H "Content-Type: application/json" -X PUT "localhost:8082/distribution/api/v1/keys/gpg" -T gpg.json
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5464 100 60 100 5404 51 4646 0:00:01 0:00:01 --:--:-- 4694^[[C
{"message":"Set PGP public & private key","status_code":200}