kaffe icon indicating copy to clipboard operation
kaffe copied to clipboard

extract_der is giving error with SSL

Open besteman opened this issue 5 years ago • 2 comments

Hello,

We are trying to pass in SSL cert and key, but we are going an error on line 77 here:

(MatchError) no match of right hand side value: nil
    (kaffe) lib/kaffe/config.ex:78: Kaffe.Config.extract_der/1

When I try to use the function decode_pem it always returns nil

image

besteman avatar Nov 19 '20 19:11 besteman

@besteman Interesting, I've not seen a problem in that area before. Are you sure the certificate is valid? Wonder if you could generate a new one just as a test and see if there's the same problem.

We use this in a ton of places, so it works in at least some circumstances.

objectuser avatar Nov 19 '20 19:11 objectuser

I have generated a dummy Pem file and tried again and I get nil.

besteman avatar Nov 20 '20 15:11 besteman