cancel
Showing results for 
Search instead for 
Did you mean: 

using x.509 as authentication token to access BAPI using JCO

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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