Complete rewrite of certificate generation
Merge branch 'master' of https://github.com/KrauseFx/PEM