on 05-17-2014 8:16 AM
we are trying to access BAPI using JCO with x.509 certificate. The certificate is passed as a base64 encoded string. But are getting the following exception
Exception in thread "main" com.sap.conn.jco.JCoException: (103) JCO_ERROR_LOGON_FAILURE: Syntax error in received X.509-client certificate (base64-coding)
Properties connectProperties = new Properties(); |
connectProperties.setProperty(DestinationDataProvider.JCO_SYSNR, "01");
connectProperties.setProperty(DestinationDataProvider.JCO_CLIENT, "500");
connectProperties.setProperty(DestinationDataProvider.JCO_LANG, "en");
//createDestinationDataFile(connectionProperty, connectProperties);
connectProperties.setProperty(DestinationDataProvider.JCO_X509CERT,certStr);
destinationProvider.addDestination(connectionProperty, connectProperties);
destinationProvider.registerDestinationProperty();
JCoDestination destination = JCoDestinationManager.getDestination(connectionProperty);
destination.getRepository();
could somebody help to fix this issue?
I got exactly the same the issue, anyone can help a little bit ?
I followed gregor.wolf
here
here is the error log content in dev_jco_rfc.trc
**** Error file opened at 20150301 080346 China Standard Time Rel 3.0.2 (2009-03-29) [720.114]
Error: >Sun Mar 01 08:03:46,555< >RfcGetException rc (7) message: Syntax error in received X.509-client certificate (base64-coding)
<RfcGetException
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.