29 lines
928 B
PowerShell
29 lines
928 B
PowerShell
<#
|
|
.SYNOPSIS
|
|
This script will use the free service Let's Encrypt in order to generate a certificate using a DNS challenge. Followed by activating it for the SoftEther VPN service.
|
|
|
|
.DESCRIPTION
|
|
For a client who needed a SoftEther VPN Service I created this script in order to automate the requesting of the certificate
|
|
and to autmatically configuring the SoftEther VPN Server with the new certificate.
|
|
|
|
The Script uses DNS challange so it won't be neccessary to enable port 80 on the VPN Server.
|
|
|
|
.OUTPUTS
|
|
Errorcodes:
|
|
n/a
|
|
|
|
.REMARKS
|
|
Author: D.de Kooker <info@dcomputers.nl>
|
|
Source: n/a
|
|
|
|
CHANGELOG:
|
|
28-05-2024 - Initial script.
|
|
#>
|
|
|
|
# Variables
|
|
$FileDate = Get-Date -Format "yyyyMMdd-HHmm"
|
|
$Tempfolder = $ENV:TEMP
|
|
$CertFolder = "C:\Program Files\SoftEther VPN Server\cert"
|
|
|
|
|
|
# Functions |