private static void bindCertKeyToVserver(nitro_service ns, String certKeyName, String vserver) throws ExecutionException {
s_logger.debug("Adding cert to netscaler");
try {
sslvserver_sslcertkey_binding cert_binding = new sslvserver_sslcertkey_binding();
cert_binding.set_certkeyname(certKeyName);
cert_binding.set_vservername(vserver);
cert_binding.perform_operation(ns);
} catch (nitro_exception e) {
throw new ExecutionException("Failed to bind certkey to vserver due to " + e.getMessage());
} catch (Exception e) {
throw new ExecutionException("Failed to bind certkey to vserver due to " + e.getMessage());
}