Hi All,
I’m trying to read a private key from a PEM file but getting the below error.
"j.s.s.InvalidKeySpecException: java.security.InvalidKeyException: invalid key format’, forwarding to the next one".
I’m using the below function to read the pem file but looks like it’s not reading the entire file.
Files.readAllBytes(Paths.get(filename))
The output is as below.
Simulation Functions started…
Success-1
Success-3
[B@70602010Success-2
12:11:37.717 [ERROR] i.g.c.a.b.SessionHookBuilder$$anon$1 - ‘hook-2’ crashed with ‘j.s.s.InvalidKeySpecException: java.security.InvalidKeyException: invalid key format’, forwarding to the next one