RoutingRemoteAccessServer

From Piszczynski
Revision as of 14:38, 4 January 2024 by Aleks (talk | contribs) (Created page with "== RAS server == === Certificate renewal === When renewing the certificate for the VPN connection on the RAS server you will need to update the registry keys for the SSTP service for the new certificate. use the following commands<syntaxhighlight lang="powershell" line="1"> $Thumbprint = <TLS certificate thumbprint> $Cert = Get-ChildItem -Path Cert:\LocalMachine\My\$thumbprint Set-RemoteAccess -SslCertificate $Cert Restart-Service RemoteAccess -Passthru </syntaxhighligh...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RAS server

Certificate renewal

When renewing the certificate for the VPN connection on the RAS server you will need to update the registry keys for the SSTP service for the new certificate. use the following commands

$Thumbprint = <TLS certificate thumbprint>
$Cert = Get-ChildItem -Path Cert:\LocalMachine\My\$thumbprint
Set-RemoteAccess -SslCertificate $Cert
Restart-Service RemoteAccess -Passthru

the Reg keys are located here:

HKLM:\SYSTEM\CurrentControlSet\Services\SstpSvc\parameters\SHA256CertificateHash

HKLM:\SYSTEM\CurrentControlSet\Services\SstpSvc\parameters\SHA1CertificateHash