# Feature Request: Regenerate a user's key/certificate without deleting the user

**URL:** <https://forum.pritunl.com/t/feature-request-regenerate-a-users-key-certificate-without-deleting-the-user/3907>\
**Category:** Pritunl VPN\
**Created:** [November 30, 2026, 3:11pm UTC](https://forum.pritunl.com/t/feature-request-regenerate-a-users-key-certificate-without-deleting-the-user/3907 "2026-11-30T15:11:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![netpro25](https://forum.pritunl.com/user_avatar/forum.pritunl.com/netpro25/32/851_2.png) [@netpro25](https://forum.pritunl.com/u/netpro25)\
**Post date:** [November 30, 2026, 3:11pm UTC](https://forum.pritunl.com/t/feature-request-regenerate-a-users-key-certificate-without-deleting-the-user/3907/1 "2026-11-30T15:11:44Z")

</div>

We use a shared technician account in each customer organisation for short, temporary connections. To make sure a downloaded profile can’t be left behind and used later, we want to give that account a new key every week, so every old profile stops working at once.

Today the only way we’ve found to do that is to delete the user and recreate it with the same name and settings. That changes the user ID, drops registered devices and the OTP secret, and means re-applying settings such as the 2FA bypass, groups, DNS and port forwarding through the API. If any step fails partway, the organisation is left with two users or none.

**Request:** an endpoint, plus a button on the user’s page, that issues a new certificate/key for an existing user and revokes the old one immediately. It would keep the user ID and all settings. Something like `PUT /user/<org_id>/<user_id>/key` (like the existing `/otp_secret` reset), with an option to also reset the OTP secret.

As far as we can tell, the `renew-org` approach lets old user certificates keep working until they expire, so it doesn’t cover this case.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [November 30, 2026, 4:03pm UTC](https://forum.pritunl.com/t/feature-request-regenerate-a-users-key-certificate-without-deleting-the-user/3907/2 "2026-11-30T16:03:58Z")

</div>

This may be added in the future. It is done internally with single sign-on if the organization assigned by single sign-on changes it removes and recreates the user in the other organization with a different key and new user ID. It would best be handled currently through the API.

The internal functions to regenerate a user certificate which are used through the command `sudo pritunl renew-org` renews an organization certificate and all user certificates. This will not invalidate the previous certificates and is designed to keep those certificates functional. This feature was added to handle expiring certificates.

---

<div class="post-metadata">

**Author:** ![netpro25](https://forum.pritunl.com/user_avatar/forum.pritunl.com/netpro25/32/851_2.png) [@netpro25](https://forum.pritunl.com/u/netpro25)\
**Post date:** [November 30, 2026, 4:11pm UTC](https://forum.pritunl.com/t/feature-request-regenerate-a-users-key-certificate-without-deleting-the-user/3907/3 "2026-11-30T16:11:02Z")

</div>

Thank you!
