You have to open the Self signed certificate in some text reading application and paste the contents. Make sure that you are omitting the first and last line. You will see the certificate content as follows:
Omit -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----lines
You will see the filed something like as follows
Also, make sure that, you have imported the client certificate in your computer with the following steps
- Once the client certificate is exported, locate and copy the .pfx file to the client computer.
- On the client computer, double-click the .pfx file to install. Leave the Store Location as Current User, and then select Next.
- On the File to import page, don't make any changes. Select Next.
- On the Private key protection page, input the password for the certificate, or verify that the security principal is correct, then select Next.
- On the Certificate Store page, leave the default location, and then select Next.
- Select Finish. On the Security Warning for the certificate installation, select Yes. You can comfortably select 'Yes' for this security warning because you generated the certificate.
- The certificate is now successfully imported.
You may also refer my blog here: Create Point-to-Site -P2S VPN Connection in Azure
Also
Hope this helps.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--