> Source: [sk174269](https://support.checkpoint.com/results/sk/sk174269)

# sk174269 - IKEv2 VPN tunnel instability to third party VPN gateway due to re-key failed

| Property | Value |
|----------|-------|
| Solution ID | sk174269 |
| Date Created | 2021-06-30 |
| Last Modified | 2021-07-04 |
| Technical Level | General |
| OS | Gaia |

## Symptoms

- * When IKEv2 and pre-shared-key is configured, VPN to third party VPN gateway may fail randomly.
* This output shows:

  ```
  [vpnd][ikev2_reauth] vpn1ReauthPeer::isSaAuthenticationValid: peer: x.x.x.x is authenticated via PSK. 
  ```

  The entry exists in this table:

  ```
   0 [vpnd][ikev2_reauth] vpn1ReauthPeer::setLog: issue log: Failed to re-validate PSK of peer x.x.x.x. Cannot rekey the IKE SA, authentication revoked. Need to create new IKE SA.
  ```

* After applying the Hotfix in sk171756, the issue still occurs.

## Cause

When writing to*ikev2_peer_PSK*, don't treat binary psk hash buf as string.

## Solution

[Contact Check Point Support](https://www.checkpoint.com/support-services/contact-support/) to get a Hotfix for this issue.   
A Support Engineer will make sure the Hotfix is compatible with your environment before providing the Hotfix.   
For faster resolution and verification please collect [CPinfo](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92739) files from the Security Management and Security Gateways involved in the case.

**Hotfix installation instructions:**   
Refer to [sk168597 - How to install a Hotfix](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk168597).

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
