Skip to content

Instantly share code, notes, and snippets.

Avatar

Mariano Cano maraino

View GitHub Profile
View agent.go
package sshkms
import (
"bytes"
"context"
"crypto"
"io"
"net"
"os"
View ca-chain.txt
$ step version
Smallstep CLI/0.15.3 (darwin/amd64)
Release Date: 2020-10-22 04:29 UTC
$ step certificate create 'My Root CA' root_ca.crt root_ca_key --profile root-ca
Please enter the password to encrypt the private key:
Your certificate has been saved in root_ca.crt.
Your private key has been saved in root_ca_key.
$ step certificate create 'My Intermediate CA' intermediate_ca.crt intermediate_ca_key --profile intermediate-ca --ca root_ca.crt --ca-key root_ca_key
@maraino
maraino / ssh.patch
Created Feb 4, 2020
SSH EC Keys Patch
View ssh.patch
commit fc346d83bb0cca8b617358b275cb678a41aaeb4f
Author: Mariano Cano <mariano.cano@gmail.com>
Date: Mon Jan 20 17:33:23 2020
ssh: support for ecdsa keys using openssh format.
This adds support for parsing OpenSSH ECDSA private keys. It
implements parsing for P-256, P-384, and P-521 unencrypted keys.
Change-Id: I77c8e0a23ed6353f6667686cc79ec14661cb10db
@maraino
maraino / panicmiddlware.go
Last active Jan 30, 2020
Simple panic middleware
View panicmiddlware.go
package main
import (
"log"
"net/http"
)
func panicMiddleware(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
defer func() {
View keybase.md

Keybase proof

I hereby claim:

  • I am maraino on github.
  • I am mariano (https://keybase.io/mariano) on keybase.
  • I have a public key whose fingerprint is BD96 1B9F CB6C CE22 5ABE AD95 6813 0D20 3189 2F1A

To claim this, I am signing this object:

You can’t perform that action at this time.