}
private static void createSslCertKey(nitro_service ns, String certFilename, String keyFilename, String certKeyName, String password) throws ExecutionException {
s_logger.debug("Adding cert to netscaler");
try {
sslcertkey certkey = new sslcertkey();
certkey.set_certkey(certKeyName);
certkey.set_cert(SSL_CERT_PATH + certFilename);
if ( keyFilename != null )
certkey.set_key(SSL_CERT_PATH + keyFilename);
if( password != null ) {
certkey.set_passplain(password);
}
certkey.perform_operation(ns);
} catch (nitro_exception e){
throw new ExecutionException("Failed to add certkey binding " + e.getMessage());
} catch (Exception e){
throw new ExecutionException("Failed to add certkey binding " + e.getMessage());