throws MyProxyException,GeneralSecurityException {
X509Certificate[] certs = userCert.getCertificateChain();
OpenSSLKey key =
new BouncyCastleOpenSSLKey(userCert.getPrivateKey());
key.encrypt(password);
StoreParams param = new StoreParams();
param.setUserName(username);
param.setLifetime(maxDelegationLifetime);
setAttributesTo(param, attributes);