private static MyProxyInit getMyProxyInit(Properties props)
throws Exception {
String hostname = props.getProperty(MYPROXY_CA);
String portStr = props.getProperty(MYPROXY_CA_PORT);
MyProxyInit myproxyInit = new MyProxyInit(hostname, portStr);
String certFile = props.getProperty(MYPROXY_CLIENT_CERT);
String keyFile = props.getProperty(MYPROXY_CLIENT_KEY);
myproxyInit.loadCertificate(certFile, keyFile);
String validity = props.getProperty(PROXY_CERTIFICATE_VALIDITY);
myproxyInit.setCertificateValidity(validity);
return myproxyInit;
}