This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change the Windows Service config for "OpenSSH Authentication Agent" | |
sc config "ssh-agent" start=delayed-auto | |
sc start "ssh-agent" | |
# Create a private/public key pair | |
ssh-keygen -t ecdsa -b 521 -f myKey | |
ssh-add myKey | |
ssh [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$url = "https://github.com/IndySockets/OpenSSL-Binaries/raw/master/openssl-1.0.2s-x64_86-win64.zip" | |
$zipPath = "$PSScriptRoot\openssl.zip" | |
$openSslPath = "$PSScriptRoot\openssl" | |
$openSsl = "$($openSslPath)\openssl.exe" | |
Invoke-WebRequest -Uri $url -OutFile $zipPath | |
Expand-Archive $zipPath -DestinationPath $openSslPath | |
&$openSsl genrsa -out private.key 4096 | |
&$openSsl req -new -sha256 -out private.csr -key private.key -config ssl.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$buildEnvironmentVisualStudio2017BuildTools = "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\"; | |
$buildEnvironmentVisualStudio2017Community = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\"; | |
$msbuild = ""; | |
$vstest = ""; | |
$nuget = "..\nuget.exe"; | |
$nugetDownloadUrl = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"; | |
# Detect build environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import-module ServerManager | |
Add-WindowsFeature Web-Server, Web-Mgmt-Service, Web-Mgmt-Console, Web-Asp-Net45 |