Skip to content

Instantly share code, notes, and snippets.

@ivanchuryumov
ivanchuryumov / genclient
Created December 14, 2016 06:11 — 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 \