Fixed #166: It's now possible to generate certificates, but this part definitely needs some design improvements.