Running the backend with ssl:
- Go to
src/main/resourcesin the terminal.
- execute:
keytool -genkey -alias sitename -keyalg RSA -keystore keystore.jks -keysize 2048with first and Last name:localhost, fill the rest in as you wish and save your password somewhere keytool -delete -alias sitename -keystore keystore.jkskeytool -list -keystore keystore.jksverify that the keytool has no entries.- Put all the certificates in your resource folder. The files are named
server.crtandserver.key. When asked for a (new) password use the password from step 2. keytool -keystore keystore.jks -import -alias jetty -file server.crt -trustcacertsopenssl pkcs12 -inkey server.key -in server.crt -export -out server.pkcs12keytool -importkeystore -srckeystore server.pkcs12 -srcstoretype PKCS12 -destkeystore keystore.jks- Rename
src/main/resources/jetty-ssl-context.xml.exampletosrc/main/resources/jetty-ssl-context.xmland put your password in it. - Ask a developer for the
firebase-auth.jsonto put in the resource folder. - Start the server.