public String generatePublicKey() {
		PublicKey publicKey = x509cert.getPublicKey();
		if (publicKey instanceof RSAPublicKey) {
			return generateRSAPublicKey();
		}
		if (publicKey instanceof DSAPublicKey) {
			return generateDSAPublicKey();
		}
		return "";
	}
@Test
	public void decodeRSAPubKey() {
		assertThat(certificateManagerRSA.generatePublicKey())
				.contains("RSA")
				.contains("65537")
				.contains("1681953129031804462554643735709908030601939275292568895111488068832920121318010916"
						+ "889038430576806710152191447376363866950356097752126932858298006033288814768019331823126004318941179"
						+ "4465899645633586173494259691101582064441956032924396850221679489313043628562082670183392670094163371"
						+ "8586841184804093747497905514737738452134274762361473284344272721776230189352829291523087538543142199"
						+ "8761760403746876947208990209024335828599173964217021197086277312193991177728010193707324300633538463"
						+ "6193260583579409760790138329893534549366882523130765297472656435892831796545149793228897111760122091"
						+ "442123535919361963075454640516520743");
	}