simple way to create a pki infrastructure - written in c++