Skip to content

Instantly share code, notes, and snippets.

View ddrinka's full-sized avatar

Douglas Drinka ddrinka

  • Ergon Capital Management
View GitHub Profile

Create a TPM-protected SSH key

Windows

Ensure TPM is available

tpm.msc

Create a private key in the TPM

@ddrinka
ddrinka / ProxyPathMiddleware.cs
Created January 5, 2018 14:45
Lambda ASP.Net Core middleware which uses only the proxy path portion of the request for routing
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using Amazon.Lambda.APIGatewayEvents;
using Amazon.Lambda.AspNetCoreServer;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;