private PEMKeyManager() {
PEMReader reader = null;
try {
final HettyConfig hettyConfig =HettyConfig.getInstance();
reader = new PEMReader(new FileReader(FileUtil.getFile(hettyConfig.getCertificateKeyFile())), new PasswordFinder() {
public char[] getPassword() {
return hettyConfig.getCertificatePassword().toCharArray();
}
});
key = ((KeyPair) reader.readObject()).getPrivate();
reader = new PEMReader(new FileReader(FileUtil.getFile(hettyConfig.getCertificateFile())));
X509Certificate cert;
Vector<X509Certificate> chainVector = new Vector<X509Certificate>();
while ((cert = (X509Certificate) reader.readObject()) != null) {