Skip to content

Instantly share code, notes, and snippets.

View magohl's full-sized avatar

Magnus Ohlsson magohl

View GitHub Profile
@magohl
magohl / gist:9fdc85d56541ff7f1fcb
Last active December 23, 2015 19:53
IISExpress SSL with ClientCertificates (2-way mututal SSL)
How to get VS2015 with IISExpress to work with a per "folder/controller" requirement of ClientCertificates:
1. Bind server certificate to port using (elevated) NETSH.EXE
--- netsh http add sslcert ipport=0.0.0.0:9880 certhash=ffffcf57c84e7ed391ee842d668f7f11fffffff appid={aaaabbbbccc-guid-ddddd}
--- Note that we will not enable client certificate negotiation here)
--- Tip: The server certificate is typically installed in LocalMachine/Personal as opposed to client certs that are in CurrentUser
2. Edit {your-app-folder}\src\.vs\config\applicationhost.config
---- Change overrideModeDefault to "allow" on access
---- <section name="access" overrideModeDefault="Allow" />
@magohl
magohl / gist:2b36db9fb50e6fb846e4
Created March 30, 2015 21:24
Dev Host - Chocolatey script
choco install 7zip
choco install evernote
choco install fiddler
::ERROR choco install filezilla
choco install FoxitReader
choco install git.install
choco install greenshot
choco install nodejs.install
@magohl
magohl / gist:029efefbf15527b5f10d
Last active February 21, 2016 19:41
Raspberry Pi 2 - Install mono and ASP.NET 5
Raspian
-Resize sdcard
-Install mono
-Install DNVM
-Install DNVM Execution Env
-Download ASPNET samples
-Resore packages for HelloWorldMvc
-Run HelloWorldMvc
sudo raspi-config