Description

This article goes over a possible solution for Authentication Issues when using certificates as the authentication method in a VPN.

Symptoms

  • IKE/kmd logs show the reason for SA failure being "Authentication Failed"
  • If the VPN is set up with pre-shared key, it works.
  • You have confirmed that the CA and local certificate setup are appropriate: https://www.juniper.net/documentation/us/en/software/junos/vpn-ipsec/topics/topic-map/security-digital-certificates-with-pki-overview.html
  • PKI traceoptions logs show:

Trusted CA profile profile-name not matched

Trusted CA Contraints Failed

 

Solution

Delete the following statement if configured:

 

set security ike policy ike-policy trusted-ca ca-profile profile-name;

 

 

After that, if the config was ok and you got the error mentioned above, the VPN should come up, this does not bypass Certificate Validation, cert validation is still done and you can see it using PKI traceoptions.

Modification History

2024-01-21 : Article Created