Re: Problem with buddy.core.keys/private-key in uberjar

2016-12-21 Thread Ralf Schmitt
Ray Miller writes: > This works as expected when invoked with `lein run`, but if I create an > uberjar with `lein do clean, uberjar` and invoke with `java -jar ...` I get > the following exception: > > Exception in thread "main" org.bouncycastle.openssl.PEMException: Unable to

Re: Problem with buddy.core.keys/private-key in uberjar

2016-12-21 Thread Henrik Lundahl
Hi Which JRE are you using? Perhaps it's not the same as for lein run? This seems very relevant: https://github.com/funcool/buddy-core/issues/43 BR -- Henrik On Wed, Dec 21, 2016 at 11:54 AM, Ray Miller wrote: > Hi, > > I ran into a problem reading a private key from a

Problem with buddy.core.keys/private-key in uberjar

2016-12-21 Thread Ray Miller
Hi, I ran into a problem reading a private key from a file using buddy-core version 1.1.1. I created a private key using: openssl genrsa -aes256 -out resources/auth_privkey.pem 2048 Here's the code: (ns tryme-buddy.core (:require [buddy.core.keys :as ks] [clojure.java.io :as io])