# Drone orgsecret can't handle private key text?

**URL:** <https://drone.discourse.group/t/drone-orgsecret-cant-handle-private-key-text/8312>\
**Category:** Drone Support\
**Created:** [June 23, 2020, 11:19am UTC](https://drone.discourse.group/t/drone-orgsecret-cant-handle-private-key-text/8312 "2020-06-23T11:19:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![decentral1se](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/decentral1se/32/4875_2.png) [@decentral1se](https://drone.discourse.group/u/decentral1se)\
**Post date:** [June 23, 2020, 11:19am UTC](https://drone.discourse.group/t/drone-orgsecret-cant-handle-private-key-text/8312/1 "2020-06-23T11:19:12Z")

</div>

```auto
 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-----…

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [June 23, 2020, 12:45pm UTC](https://drone.discourse.group/t/drone-orgsecret-cant-handle-private-key-text/8312/2 "2020-06-23T12:45:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![decentral1se](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/decentral1se/32/4875_2.png) [@decentral1se](https://drone.discourse.group/u/decentral1se)\
**Post date:** [June 23, 2020, 1:42pm UTC](https://drone.discourse.group/t/drone-orgsecret-cant-handle-private-key-text/8312/3 "2020-06-23T13:42:26Z")

</div>

Oh yes, thanks a lot!
