jara001 / ah-raspi-core

Arrowhead Framework Core Services for Raspberry Pi
0 stars 1 forks source link

Document replacing of certificates in `.jar` files #2

Open jara001 opened 2 years ago

jara001 commented 2 years ago

The certificates in .jar files can be replaced without clean-building the core with:

mkdir -p ./BOOT-INF/classes/certificates/
cp ./certificates/* ./BOOT-INF/classes/certificates/
find ./core-java-spring/ -maxdepth 4 -name *\.jar | xargs -n 1 -I'{}' zip -0 '{}' ./BOOT-INF/classes/certificates/*
rm -rf ./BOOT-INF
jara001 commented 2 years ago

Of course, the certificates are generated using:

PASSWORD=1111 DOMAIN="aitia" CLOUD="testcloud2" FOLDER="../certificates/" SAN="ip:127.0.0.1,dns:localhost" bash ./ah-certgen/generate.sh service_registry authorization gateway event_handler datamanager gatekeeper orchestrator choreographer certificate_authority onboarding_controller device_registry system_registry translator