Certificate renewal
Description
General procedure for the renewal of certificates.
To do
password: changeIt
-
Go to connector directory
bash cd apps/qc/connector/conf -
Run the following commands in sequence, modify as needed
bash echo | openssl s_client -servername name -connect newskies-test.eurowings.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > newpcert.crt
bash echo | openssl s_client -servername newskies-test.eurowings.com -connect newskies-test.eurowings.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > newpcert.crt
bash /home/qcuser/apps/opt/java/bin/keytool -import -alias cert251001x -v -trustcacerts -file newpcert.crt -keystore truststoreNskEwTest.jks
bash curl --silent -u scriptadmin:H@nn0vEr48 http://localhost:8080/manager/text/reload?path=/quintessence-nsk-4-connector
bash curl 'http://localhost:8080/quintessence-nsk-4-connector/services/cxf/json/MonitoringService/retrieveFlightInfo' -H 'Content-Type: application/json' -d '{"data": {"carrierCode": "EW", "flightNumber": 4711, "flightDate": "2022-05-31 00:00:00", "departure": "RIX", "destination": "HAJ"}}'