Last active
June 30, 2017 05:03
-
-
Save mattjcowan/b86a141a5da23d9aeaae644548973266 to your computer and use it in GitHub Desktop.
letsencrypt
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
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
choco install gow -y | |
choco install curl -y | |
choco install 7zip -y | |
mkdir c:\tools | |
mkdir c:\tools\letsencrypt | |
c: | |
cd c:\tools\letsencrypt | |
rm letsencrypt-win-simple.v1.9.3.zip | |
curl -O -J -L "https://github.com/Lone-Coder/letsencrypt-win-simple/releases/download/v1.9.3/letsencrypt-win-simple.V1.9.3.zip" --insecure | |
7z x letsencrypt-win-simple.v1.9.3.zip | |
cp Web_Config.xml Web_Config.orig.xml | |
curl -O -J -L "https://gist.githubusercontent.com/mattjcowan/b86a141a5da23d9aeaae644548973266/raw/a87fec3f3ebd674388d21bd1f5600a5d56e3df76/Web_Config.xml" --insecure |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<validation validateIntegratedModeConfiguration="false" /> | |
<staticContent> | |
<clear/> | |
<mimeMap fileExtension="." mimeType="text/json" /> | |
</staticContent> | |
<handlers> | |
<clear /> | |
<add name="StaticFile" path="*" verb="*" type="" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" scriptProcessor="" resourceType="Either" requireAccess="Read" allowPathInfo="false" preCondition="" responseBufferLimit="4194304" /> | |
</handlers> | |
</system.webServer> | |
<system.web> | |
<authorization> | |
<allow users="*" /> | |
</authorization> | |
</system.web> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment