zos.write(FileUtils.readContent(pemFile));\r
zos.closeEntry();\r
}\r
+ \r
+ // include user's public certificate\r
+ zos.putNextEntry(new ZipEntry(clientMetadata.commonName + ".cer"));\r
+ zos.write(cert.getEncoded());\r
+ zos.closeEntry();\r
+ \r
+ // include CA public certificate\r
+ zos.putNextEntry(new ZipEntry("ca.cer"));\r
+ zos.write(caCert.getEncoded());\r
+ zos.closeEntry();\r
+ \r
if (readme != null) {\r
zos.putNextEntry(new ZipEntry("README.TXT"));\r
zos.write(readme.getBytes("UTF-8"));\r