March 2019
Intermediate to advanced
234 pages
8h 14m
English
To create a Point-2-Site connection, we'll need to generate a certificate that will be used for connection. To create a certificate, we must follow these steps:
$cert = New-SelfSignedCertificate -Type Custom -KeySpec Signature `-Subject "CN=P2SRootCert" -KeyExportPolicy Exportable `-HashAlgorithm sha256 -KeyLength 2048 `-CertStoreLocation "Cert:\CurrentUser\My" -KeyUsageProperty Sign -KeyUsage CertSignNew-SelfSignedCertificate -Type Custom -DnsName P2SChildCert -KeySpec Signature `-Subject "CN=P2SChildCert" -KeyExportPolicy Exportable `-HashAlgorithm sha256 -KeyLength 2048 `-CertStoreLocation "Cert:\CurrentUser\My" `-Signer $cert -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.2") ...