A PowerShell module to help generate the required self-signed certificates to set up a Point-To-Site VPN on Microsoft Azure.
Azure Point-To-Site Certificate Documentation
- New-AzureVPNRootCertificate
- New-AzureVPNClientCertificate
- Export-AzureVPNCertificate
- New-AzureVPNRootCertificate
New-AzureVPNRootCertificate -subject 'azureVPN'
- New-AzureVPNClientCertificate
New-AzureVPNClientCertificate -thumbprint 'sdfsd8udf' -subject 'azureVpnClient'
New-AzureVPNRootCertificate -subject 'azureVPN' | New-AzureVPNClientCertificate -subject 'azureVPNClient'
New-AzureVPNClientCertificate -thumbprint 'sdfsd8udf' -subject 'azureVpnClient' | Export-AzureVPNCertificate -path 'c:\exportPath' -pfx -password (ConvertTo-SecureString -String '1234' -Force -AsPlainText)
- Export-AzureVPNCertificate
$password = ConvertTo-SecureString -String '1234' -Force -AsPlainText)
Export-AzureVPNCertificate -thumbPrint 'dsfdssds435353' -path 'c:\exportPath' -pfx -password $password -removeAfterExport
Export-AzureVPNCertificate -thumbPrint 'dsfdssds435353' -path 'c:\exportPath' -cer
The module is published to the PowerShell Gallery (https://www.powershellgallery.com/packages/azureVpnP2SSelfSignedCertificate).
Install-Module -Name azureVpnP2SSelfSignedCertificate
- Initial release
- Ben Taylor - ben@bentaylor.work