SAP Knowledge Base Article - Preview

3118300 - Unable to export the private key using ExportPrivateKey - exception in java.lang.NullPointerException in step 8 following KBA 1899365

Symptom

Following steps in KBA 1899365 - How to setup self-signed test SSL with ASE and SDK - SAP ASE
in step 8 - Grab ASE private key. Exception and in java.lang.NullPointerException  is generated 

java com.sap.security.ExportPrivateKey -keystore ASEName.jks -alias ASEname -file ASEname.key -storepass mystorepassword
Exception in thread "main" java.lang.NullPointerException: while trying to invoke the method java.security.KeyPair.getPrivate() of a null object loaded from a local variable at slot 7
        at com.sap.security.ExportPrivateKey.export(ExportPrivateKey.java:131)
        at com.sap.security.ExportPrivateKey.main(ExportPrivateKey.java:39)


Read more...

Environment

  • SAP Adaptive Server Enterprise 16 (ASE)
  • SAP ASE SDK 16 

Product

SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise SDK 16.0

Keywords

ExportPrivateKey,Private Key, PrivateKey,java.security.KeyPair.getPrivate,null object,java.lang.NullPointerException,1899365,KBA 1899365,ssl , KBA , BC-SYB-SDK , SDK , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.