# Pre-generate an API key pair outside Rancher

**URL:** <https://forums.suse.com/t/pre-generate-an-api-key-pair-outside-rancher/3517>\
**Category:** Rancher 1.x\
**Created:** [July 23, 2016, 4:32pm UTC](https://forums.suse.com/t/pre-generate-an-api-key-pair-outside-rancher/3517 "2016-07-23T16:32:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Upayavira](https://avatars.discourse-cdn.com/v4/letter/u/ba8739/32.png) [@Upayavira](https://forums.suse.com/u/Upayavira)\
**Post date:** [July 23, 2016, 4:32pm UTC](https://forums.suse.com/t/pre-generate-an-api-key-pair-outside-rancher/3517/1 "2016-07-23T16:32:21Z")

</div>

Is there any way I can pre-generate the API access/secret key pair, outside of Rancher?

I’m building an automated setup that will invoke, at Amazon, a fresh infrastructure including VPC, management server hosting a SSL/basic auth protected Docker Registry, Rancher and Jenkins - it is almost running single click.

One thing that would make it much smoother is if I could tell Rancher “use this key pair” as I can then just pass it to all the applications that need it, rather than having them wait to retrieve them from Rancher.

Any chance this is possible?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [July 24, 2016, 9:41pm UTC](https://forums.suse.com/t/pre-generate-an-api-key-pair-outside-rancher/3517/2 "2016-07-24T21:41:46Z")

</div>

When access control is off you can provide the accessKey/secretKey instead of generating one… [Custom username and password for API access](http://forums.suse.com/t/custom-username-and-password-for-api-access/3155/9)

---

<div class="post-metadata">

**Author:** ![Upayavira](https://avatars.discourse-cdn.com/v4/letter/u/ba8739/32.png) [@Upayavira](https://forums.suse.com/u/Upayavira)\
**Post date:** [July 28, 2016, 4:41am UTC](https://forums.suse.com/t/pre-generate-an-api-key-pair-outside-rancher/3517/3 "2016-07-28T04:41:32Z")

</div>

Many thanks, I’ll give that a read through and try it out!
