Showing posts from November, 2015

Setting up Dropwizard

Generate self signed certificate.
$ keytool -genkey -alias selfsigned -keyalg RSA -keystore keystore.jks -keysize 2048Export the keystore as certificate (.crt): $ keytool -export -alias selfsigned -file selfsigned.crt -keystore keystore.jks
Import that certificate into your cacerts, the default Java keystore. You may need to do this as root, or with sudo. Go to the $JAVA_HOME/jre/lib/security directory, and run:
$ keytool -import -trustcacerts -alias selfsigned -file $SSL_FOLDER/selfsigned.crt -keystore cacerts
Put the following config in config.yml of dropwizard:
config.yml: server: adminMinThreads: 1 adminMaxThreads: 64 adminContextPath: /admin applicationContextPath: / applicationConnectors:- type: http port: 8080 - type: https port: 8443 keyStorePath: ./keystore.jks keyStorePassword: password trustStorePath: $JAVA_HOME/jre/lib/security/cacerts trustStorePassword: changeit certAlias: selfsigned adminConnectors:- type: http po…