How to build your own public key infrastructure
Git project for the solution discussed above:
CFSSL: Cloudflare's PKI and TLS toolkit