Skip to end of metadata
Go to start of metadata

Use the setSSLOptions API to set options on the encrypted HTTPS connection.

########====CDP Server Configuration Start====######## #set CDP server host name $HOST="10.230.131.25"; #set CDP server to access API $PORT="9443"; #set CDP user $USER="admin"; #set CDP user password $PASS="admin"; ########====CDP Server Configuration End====######## $ENABLED=TRUE; $NEW_PORT="442"; $MAX_CONS="99"; $PATH="/usr/sbin/r1soft/conf/keystore1"; $RESTART="yes"; #Set the options on the encrypted HTTPS connection. try{ $client = new soapclient("https://$HOST:$PORT/Configuration?wsdl", array('login'=>"$USER", 'password'=>"$PASS", 'trace'=>1 ) ); $client->setSSLOptions(array('enabled'=>"$ENABLED", 'port'=>"$NEW_PORT", 'maxConnections'=>"$MAX_CONS", 'keystorePath'=>"$PATH", 'restartWebService'=>"$RESTART")) ; } catch (SoapFault $exception) { echo $exception; } echo "Successfully executed setSSLOptions\n"; exit(0); }

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.