generate public/private key pair
openssl genrsa -aes256 -out private.pem 2048
openssl rsa -pubout -in private.pem -out public.pemconfigure profiles.clj
{:production {:env {:client-id "ID"
:client-secret "SECRET"
:private-key "private.pem"
:private-key-passphrase "PASSPHRASE"}}}lein ring server-headlesslein with-profile +production ring uberjarThe bouncycastle signing library cannot be included in the uberjar build.
Download bcpkix-jdk15on-159.jar and bcprov-jdk15on-159.jar from here and add to the classpath when running the app.
java -cp target/uberjar/openid-client-0.1.0-SNAPSHOT-standalone.jar:bcpkix-jdk15on-159.jar:bcprov-jdk15on-159.jar openid_client.core.main