Public Certificate for P2S

Alberto 26 Reputation points

I am stuck in P2S Configuration unable to add Public Certificate Data. The instructions I have followed do not help me ( What am I missing? How do I get the certificate?

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,360 questions
0 comments No comments
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 46,761 Reputation points Microsoft Employee

    Hello @Alberto ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    May I know at which step of that article you are facing issues?

    The steps in this article apply to Windows 10 or Windows Server 2016 machine. The PowerShell cmdlets mentioned works only on Windows 10 or Windows Server 2016. So, you just need to open a Windows PowerShell console with elevated privileges in your Windows 10 or Windows Server 2016 device and run the commands to generate the root & client certificate. Then export the root certificate public key (.cer) and copy the certificate data & paste it into the Public certificate data field of the VPN gateway in Azure Portal and then follow the below article:

    If you generated the client certificate in the device from which you will be connecting to P2S VPN, you don't need to export it and can directly install it following below article:
    If you want to install the client certificate on another client computer, you need to export the client certificate that you generated in the current machine and then install the same on that target device.

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

0 additional answers

Sort by: Most helpful