Skip to content

Instantly share code, notes, and snippets.

View mikehale's full-sized avatar

Michael Hale mikehale

  • RoleModel Software
  • Holly Springs, NC
View GitHub Profile
@mikehale
mikehale / cert.rb
Created May 10, 2011 18:51 — forked from ricardochimal/cert.rb
generating ssl certs with subjectAltName domains
domain = "*.example.com"
subjectAltDomains = [ domain, "example.com" ]
require 'openssl'
puts "Generating public and private keys..."
key = OpenSSL::PKey::RSA.new(2048)
subject = "/C=US/ST=California/L=Los Angeles/O=Example Inc./CN=#{domain}"
cert = OpenSSL::X509::Certificate.new
@mikehale
mikehale / a-screenshot.md
Created July 1, 2011 20:57 — forked from akahn/a-screenshot.md
Embed gravatars in Propane chat

echo '{
"handlers": ["debug"],
"name": "push_woot_test",
"output": "woot!",
"status": 1
}' | nc -w1 127.0.0.1 3030