on 03-18-2016 2:57 AM
Hi Folks ,
I am using Key based authentication in my receiver SFTP adapter.
I also have a custom module which will place file on SFTP server and at the same time Ack file on NFS system.
Can anyone let me know how to access the key store for certificate and private key in the custom module as ( certificate and private key is located in NWA )
I would require that in module for authentication purpose.
Any help is appreciated
Thanks
Ninad Sane
Hi Team/Praveen
I am able to access the private key through the code given above from the keystore.
Now I want to use this private key in this method -
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ninad,
You can find the help document here Accessing the AS Java Keystore - SAP NetWeaver Process Integration - SAP Library
Sample adapter have the example code for this.
SAPSecurityResources secRes = SAPSecurityResources.getInstance();
KeyStoreManager ksMgr = secRes.getKeyStoreManager(PermissionMode.SYSTEM_LEVEL, new String[]{ "sap.com/com.sap.aii.adapter.sample.ra" } );
java.security.KeyStore ks = ksMgr.getKeyStore(privKeyView);
ISsfProfile privKeyProf = ksMgr.getISsfProfile(ks, privKeyAlias, null); //Since code based permission is used no password needs to be supplied
java.security.PrivateKey privKey = privKeyProf.getPrivateKey();
check this thread also Keystore access in Java Mapping Program - user ... | SCN
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.