Skip to content

Instantly share code, notes, and snippets.

View brettwooldridge's full-sized avatar

Brett Wooldridge brettwooldridge

  • LogicVein, Inc
  • Tokyo, Japan
View GitHub Profile
@brettwooldridge
brettwooldridge / genclient
Created October 28, 2015 03:16 — forked from wsargent/genclient
Create a working(!) client certificate for use with nginx, using only keytool
#!/bin/bash
export PW=`pwgen -Bs 10 1`
echo "$PW" > password
# Create a self signed certificate & private key to create a root certificate authority.
keytool -genkeypair -v \
-alias clientCA \
-keystore client.jks \