title: Azure vpn error A certificate could not be found that can be used with this Extensible Authentication Protocol. (Error 798)
body: <p>I am creating a VPN in Azure, and created self-signed certificate in the following places:</p>
  
  <p>Local Computer:
  Personal/Certificates: Issued To: FQDN name is the certificate's name
  Trusted Root Certification Authorities/Certificates:
  manually copied from Personal</p>
  
  <p>I have configured the VPN in Azure and it is downloaded and extracted and the vpn client is installed successfully, however, when I run the client I received the following error:</p>
  
  <blockquote>
    <p>A certificate could not be found that can be used with this Extensible
    Authentication Protocol. (Error 798)</p>
  </blockquote>
  
  <p>Screenshot:</p>
  
  <p><a href="https://i.stack.imgur.com/BGBoC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BGBoC.png" alt="enter image description here"></a></p>
  
  <p>The error seems suggesting the certificate is NOT found, does the name matter?</p>
  
  <p><a href="https://i.stack.imgur.com/7GXaz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7GXaz.png" alt="enter image description here"></a></p>
  
  <p>Should I change the cert's name from Azurecert to FQDN which is the name in my local computer?</p>
  
  <p>Thank you for your help in advance.</p>
  
  <p>UPDATE:
  I removed the existing certification in Azure's configuration and re-added back with the same FQDN name shown in local computer's certificates, I redownloaded the client, I removed the existing installed vpn client and re-installed the new one, I receive the same error message. So it seems name is not the root cause?</p>
  
  <p>UPDATE2:</p>
  
  <p>The procedure I've followed:</p>
  
  <ol>
  <li><p>Create Self Signed Certificate with the FQDN name on local laptop;</p>
  
  <p>New-SelfSignedCertificate –DnsName NV-RXIE.novantas.pri -CertStoreLocation “cert:\LocalMachine\My”</p></li>
  <li><p>Add the self-signed certificate as a trusted certificate authority, Copy the new cert to Trusted Root Certificate Authorities</p></li>
  <li><p>export the cert and open it, copy the cert part and paste into the 
  VPN setting – Root certificates, Public Certificate Data</p></li>
  <li><p>Download the VPN client and install it on laptop, run it </p></li>
  <li><p>Connect, failed with: </p></li>
  </ol>
  
  <blockquote>
    <p>A certificate could not be found that can be used with this Extensible
    Authentication Protocol. (Error 798)</p>
  </blockquote>