Java 11
Create a .env
file based on .env.template
. Its contains your env variables including your mater password to encrypt the app passwords.
./gradlew clean build
java -Djasypt.encryptor.password=yourMasterPassword -jar build/cryptax-backend.jar
java -Djasypt.encryptor.password=yourMasterPassword -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=5005,suspend=n -jar build/cryptax-backend.jar`
Password are encrypted with Jasypt. To encrypt your password, use that command:
java -cp jasypt-1.9.2.jar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI input=dbPassword password=yourMasterPassword algorithm=PBEWithMD5AndDES
Then you just have to start the app with:
-Djasypt.encryptor.password=yourMasterPassword
docker-compose build && docker-compose up
./gradlew testReport jacocoRootReport
keytool -genkeypair -keystore keystore.jceks -storetype jceks -storepass secret -keyalg EC -keysize 521 -alias ES512 -keypass secret -sigalg SHA512withECDSA -dname "CN=,OU=,O=,L=,ST=,C=" -validity 360