diff --git a/nrls-adapter/src/main/resources/adapterkeystore.jks b/nrls-adapter/src/main/resources/adapterkeystore.jks new file mode 100644 index 0000000..014efce Binary files /dev/null and b/nrls-adapter/src/main/resources/adapterkeystore.jks differ diff --git a/nrls-adapter/src/main/resources/adaptertruststore.jks b/nrls-adapter/src/main/resources/adaptertruststore.jks new file mode 100644 index 0000000..658e9db Binary files /dev/null and b/nrls-adapter/src/main/resources/adaptertruststore.jks differ diff --git a/nrls-adapter/src/main/resources/application.properties b/nrls-adapter/src/main/resources/application.properties index 00b25d3..42bff53 100644 --- a/nrls-adapter/src/main/resources/application.properties +++ b/nrls-adapter/src/main/resources/application.properties @@ -7,15 +7,22 @@ spring.cache.cache-names: pointers spring.cache.caffeine.spec: maximumSize=500, expireAfterWrite=30m # security configuration -security.require-ssl=false server.port=8080 +# define if a security certificate is needed by the application and turn ssl connections on/off. +server.ssl.enabled=true +# TrustStore Settings - Incoming connection +server.ssl.trust-store=src/main/resources/adaptertruststore.jks +server.ssl.trust-store-password=password +server.ssl.trust-store-type=JKS +server.ssl.client-auth=want +# KeyStore Settings - Outgoing connection server.ssl.key-store-password=password -server.ssl.key-store=src/main/resources/testkeystore.jks +server.ssl.key-store=src/main/resources/adapterkeystore.jks server.ssl.key-store-type=JKS -server.ssl.keyAlias=tks_client +server.ssl.keyAlias=adapter # task schedule -task.schedule.cron=0 0 12 * * ? +task.schedule.cron=0 0 23 * * * task.folder.location=provider # logging location @@ -29,7 +36,7 @@ spine.asid=999999999999 # nrls api configuration # Get request -nrls.api.get.pointer.url=http://127.0.0.1:4848/DocumentReference +nrls.api.get.pointer.url=https://127.0.0.1:4848/DocumentReference nrls.api.get.pointer.url.subject=?subject=https://demographics.spineservices.nhs.uk/STU3/Patient/ nrls.api.get.pointer.url.count=&_summary=count nrls.api.get.pointer.url.identifier=&identifier= diff --git a/nrls-adapter/src/main/resources/testkeystore.jks b/nrls-adapter/src/main/resources/testkeystore.jks deleted file mode 100644 index 6a490b0..0000000 Binary files a/nrls-adapter/src/main/resources/testkeystore.jks and /dev/null differ