X509: create library for generating keys and certificates and testing them