I'm setting up a P2S configuration on an Azure VPN Gateway. I'm attempting to use machine certificate authentication and IKEv2. I'm using the built in Windows 10 (1909) client and self generated certificates using powershell.
I can make the connection work using DH Group 2, however my connection fails once I switch DH Group to ECP256. I receive the error 'Error (13801) IKE Authentication credentials are unacceptable.'
Initial analysis suggested the certificate needed to be of type ECP so I generate the certificate as follows:
New-SelfSignedCertificate -Type Custom `
-Subject "***" `
-CertStoreLocation "Cert:\LocalMachine\My" `
-Signer $cert `
-TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.2") `
-KeyExportPolicy Exportable `
-KeyAlgorithm ECDSA_nistP256 `
-CurveExport CurveName `
-HashAlgorithm sha256
Can anyone suggest a possible resolution?