Creating Certificate for Azure Point to Site
When using an Azure environment it can be easier for users to connect to a VPN to connect to file servers and drive mappings. This blog outlines how to create and install certificates once an Azure VNet and gateway have been established.
- Sign in to the Domain Controller server
- Open PowerShell as administrator
- Run the following command to generate a self-signed root certificate
b. Leave the same PowerShell window open
c. Run the following command to generate a client certificate
3. Export the root certificate public key
- Open certificate manager via start menu
- Locate the certificate (Current UserPersonalCertificate)
- Right click the root certificate -> All Tasks -> Export
d. In the Wizard, select Next and use the following options
- No, do not export private key -> Next
- Base-64 encoded X.509(.CER) -> Next
- Specify a file path to save the certificate to
- Click finish
4. Export the client certificate
- In certificate manager, right click the client cert -> All Tasks -> Export
- In the Wizard, select next and use the following options
- Yes, export the private key -> Next
- Personal Information Exchange -PKCS #12
- Select Include all certificates in the certification..
- Select Enable the certificate privacy
- Hit Next
- Enter a password for the certificate -> Next
- Choose a location to export the certificate (Preferable the same place the root cert was saved to) -> Next
- Select Finish
5. Copy and paste the client cert to any computer needed and double click to install