Creating a Point-to-Site connection
Accessing resources in a secure way is important, and this must be performed securely. It's not always possible to perform this using a Site-to-Site connection, especially when we have to perform something out of work hours. In this case, we can use Point-to-Site to create a secure connection that can be established from anywhere.
Getting ready
To create a Point-to-Site connection, we'll need to generate a certificate that will be used for the connection. To create a certificate, we must follow these steps:
- Execute the following PowerShell script to generate a certificate:
$cert = New-SelfSignedCertificate -Type Custom ' -KeySpec Signature ' -Subject "CN=P2SRootCert" ' -KeyExportPolicy Exportable ' -HashAlgorithm sha256 -KeyLength 2048 ' -CertStoreLocation "Cert:\CurrentUser\My" ' -KeyUsageProperty Sign ' -KeyUsage CertSign New-SelfSignedCertificate -Type Custom '...