Hello, I haven't tried it myself, but from the stacktrace and Jsch souce code, I think you should specify a file in pkcs8 format, instead of pkcs12. Jsch will leave keypair null if it fails to parse it, that may be the cause of the NullPointerException.
For converting a pem file to a pkcs8, there is a Stackoverflow thread which might be helpful in your case, too: To convert the private key from PKCS#1 to PKCS#8 with openssl: # openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in pkcs1.key -out pkcs8.key https://stackoverflow.com/questions/8290435/convert-pem-traditional-private-key-to-pkcs8-private-key Thanks, Koji On Tue, Nov 14, 2017 at 2:29 AM, Yatsevitch, Mcgregor J <mcgregor.j.yatsevi...@lmco.com> wrote: > Hi, > I'm trying to get a GetSFTP processor to work. > I've provided the private key path. > The error in nifi-app.log says: > Null.PointerException: null > at com.jcraft.jsch.KeyPairPKCS8.getPublicKeyBlob(keyPairPKCS8.java:199) > at com.jcraft.jsch.IdentityFile.getPublicKeyBlob(IdentityFile.java:199) > > The file in the private key path is a pem file, created with an openssl > pkcs12 command. > > Has anyone come across this? What do I have wrong? > Thanks