# How to rotate public/private key pair using client credentials grant flow?

**URL:** <https://devforum.okta.com/t/how-to-rotate-public-private-key-pair-using-client-credentials-grant-flow/12522>\
**Category:** Questions\
**Created:** [January 15, 2021, 11:34pm UTC](https://devforum.okta.com/t/how-to-rotate-public-private-key-pair-using-client-credentials-grant-flow/12522 "2021-01-15T23:34:06Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![sophilao](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@sophilao](https://devforum.okta.com/u/sophilao)\
**Post date:** [January 20, 2021, 9:49pm UTC](https://devforum.okta.com/t/how-to-rotate-public-private-key-pair-using-client-credentials-grant-flow/12522/8 "2021-01-20T21:49:27Z")

</div>

I am trying to update an existing client. Can you explain what you mean why using “an API key to update an existing client”?

The reason I am trying to update the existing client is so we can rotate the key pair. I wanted to add another key, switch our application over, and then delete the previous key. In order to do this, will I need to use a new client?

---

_[View the full topic](https://devforum.okta.com/t/how-to-rotate-public-private-key-pair-using-client-credentials-grant-flow/12522)._
