Drone

Drone orgsecret can't handle private key text?

 drone orgsecret add myorg docker_cacert "$(cat ca.pem)"

Where ca.pem is a big 'ol string that looks like:

-----BEGIN CERTIFICATE-----…

The CLI reports “bad flag syntax”:

bad flag syntax: -----BEGIN CERTIFICATE-----…

you should read the secret from disk as shown here:
https://docs.drone.io/cli/orgsecret/drone-orgsecret-add/

1 Like

Oh yes, thanks a lot!