use of org.xipki.security.pkcs12.P12KeyGenerator in project xipki by xipki.
the class P12RSAKeyGenCmd method execute0.
@Override
protected Object execute0() throws Exception {
if (keysize % 1024 != 0) {
throw new IllegalCmdParamException("keysize is not multiple of 1024: " + keysize);
}
P12KeyGenerationResult keypair = new P12KeyGenerator().generateRSAKeypair(keysize, toBigInt(publicExponent), getKeyGenParameters(), subject);
saveKey(keypair);
return null;
}
Aggregations