This page was last edited on May 31, 2024, at 08:42.
Comments or questions about this documentation? Contact us for support!
By default, GMS connects to ORS and URS using HTTP. You can use HTTPS for these connections by following the steps below.
$ keytool -import -alias urscertificate -keystore /etc/pki/java/cacerts -file /security/urscertificate.crt -noprompt -storepass changeit
[service.agent-stat-proxy-https]
_caching_policy=5
_service=urs-stat
_type=builtin
_urs_stat_url_parameters=tenant=Environment&target=KSippola.A&json&ext
_urs_url=https://hosturs:443/urs/stat/targetstate
To test the URS connection, enter the following commands:
$ curl -k https://hosturs:443/urs/version
8.1.400.41
$ curl -k "https://hosturs:443/urs/stat/targetstate?tenant=Environment&target=KSippola.A&json&ext"
{
"status":0,"agent":"KSippola"
}
To test the GMS connection to URS, enter the following commands:
$ curl "http://hostgms:8080/genesys/1/service/agent-stat-proxy-https"
{"agent":"KSippola","status":0}
In case of any issue while connecting to URS, the response would look like below:
$ curl "http://hostgms:8080/genesys/1/service/agent-stat-proxy-https"
{"exception":"java.io.IOException","message":"URSStatisticService: cannot submit to URS for any URL in 'service.agent-stat-proxy-https' section"}
$ keytool -import -alias orscertificate -keystore /etc/pki/java/cacerts -file /security/orscertificate.crt -noprompt -storepass changeit
[server]
_ors=https://<hostors>:8443
To test the ORS connection, enter the following commands:
$ curl -k https://hostors:8443/heartbeat
...
< HTTP/1.1 200 OK
< Server: GTS_CORE 2.0
< Content-Type: text/html;
< Cache-control: private
< Etag: 1560434146
< Content-length: 33
<
Node is operating in primary mode
To do so, create a callback through the Callback Service API or using the Callback UI.