cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Work Manager 6 - WPF Client & ATE Error

Former Member
0 Kudos

Hi,

I have installed SMP 2.3 SP03 L01 and have deployed the Work Manager 6 application on the server. My Agentry.ini and JavaBE.ini files seem okay. Self-Signed certificates were used properly as mentioned in the guides. connectTest.bat executes correctly, thus showing SAP backend information. The Work Manager agentry application starts correctly from SMP.

However, now that i want to test the application, I'm unable to connect to the server. The WPF and ATE errors are as below:

Can somebody help me out with these errors?

Tags edited by: Michael Appleby

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I realize I hadn't installed the certificate in Trusted Certificate Authorities Store. So I installed it. But now the server doesn't want to recognize the certificate. It throws an error:

Any suggestions?

Former Member
0 Kudos

Hi Sreyan,

When you generate SSL certificate make sure in common name you give FQDN(fully qualified domain name).

From error i can see that you have given your name as common name instead of that you have to give domain name of SMP server, that means your common name has to be indessapd011.

Let me know if it works.

Regards,

Abhishek Wajge

Former Member
0 Kudos

Hi Abhishek,

I have figured out the problem. You are correct, the common name should be indessapd011. Other than that I had to change a couple of settings in the Agentry.ini too.

I'm now able to connect to the test environment:

However, I'm still unable to connect to the WPF client. The error is still:


Logging user into server
Communications error (14)
Connection failed
Ending transmission

Any ideas on this?

tahir_z
Contributor
0 Kudos

Hi,

If WPF client and server are in different machines so you need to add .cer certificate in installed WPF directory. Convert the server-cert.pem to .cer file and then install .cer certificate in Trusted Certificate Authorities Store as well. Restart client.

Regards

Tahir

Former Member
0 Kudos

Hi Sreyan,

As Tahir mentions, You need to copy .sst file in WPF client installation directory and delete an existing .sst file.

Have you already done that?

Regards,

Abhishek Wajge

Former Member
0 Kudos

Hi Tahir,

Do you mean just placing the certificate file in the installation directory will work? The certificate is already installed in Trusted Certificate Authorities Store.

Former Member
0 Kudos

No Abhishek I haven't done that. How do I generate the .sst file?

Former Member
0 Kudos

You need to copy your .cer file first and rename it to AgentryTrustedCertificates.sst.

Now in your WPF installation directory you copy this .sst file which will replace an existing one.

Attaching the screenshot for your reference.

Regards,

Abhishek Wajge

Former Member
0 Kudos

Thanks Abhishek.

I'm able to connect WPF client to server now.

Can you help me out with Android client too? Do they require certificates? How do I go about it?

Thanks in advance.

Former Member
0 Kudos

Yes, for android you need to copy the certificate file(.cer file) to the device and then import it.

Then you run .apk file available for agentry android platform and proceed with app settings.

Regards,

Abhishek Wajge

Former Member
0 Kudos

Hi Abhishek,

I'll explain what I did for Android.

1) Pushed the certificate to the emulator using adb in /mnt/sdcard.

2) Went to Settings > Security and set a PIN and installed certificate from SD card.

3) Installed Agentry client for android using adb.

Now on trying to login with the credentials and server hostname as used for other client, I got the following error:

Where did I go wrong?

Former Member
0 Kudos

Hi Sreyan,

Unable to resolve host means you have some network connection issues, I would rather suggest you to directly test the app on actual android device and see what happens, provided you have proper working network on your device.

Regards,

Abhishek Wajge

Former Member
0 Kudos

But the other clients are working fine in the same network. Am I missing out on anything at all?

Former Member
0 Kudos

Hi Experts,

I am deploying WM 6.1 in SMP 3.0,I am getting Communication Error(14).I have issues only on WPF

client side as I can see error:The certificate (chain) is not valid.

I need to install smp server certificate(smp_crt) as well as SSL certificate for WPF Client?

Thanks for your support.

Regards,

Peter

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Peter,

This question is already marked as answered. Please start a new thread with your question so you can then mark it complete when answered.

--Bill

Former Member
0 Kudos

Hi Abhishek Wajge


Please could you see this document .



http://scn.sap.com/message/15437624


Regards

Jaime

Answers (1)

Answers (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Did you install the certificate on the machine running the WPF and ATE clients?

--Bill

Former Member
0 Kudos

Yes Bill, my WPF and ATE are working fine now. My issue is with the Android client.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Sreyan,

Did you install the certificate on the Andorid device?  I'm trying to do that myself now but can't seem to get my device to take the certificate.  I will try again on Monday with a different device.

It should be essentially the same process.  Install the certificate on the device and it should show up under Settings -> Security -> Trusted Credentials -> User.   Then try to connect from your client as normal.

--Bill

Former Member
0 Kudos

Hi Bill,

As I mentioned earlier, I'm using an emulator for the client. I have successfully installed the certificate, and it shows under Settings -> Security -> Trusted Credentials -> User too.

The client still refuses to accept the credentials though. It is unable to resolve the hostname.

Former Member
0 Kudos

What version of Android are you using?

There was a known issue where the OD wouldn't recognize host names in a local domain.

Issue 8030 - android - Not recognizing hostnames on local domain - Android Open Source Project - Iss...

This issue was resolved in Android 4.4

Former Member
0 Kudos

I'm using Android 4.2.2.

I went through the thread and tried with 4.4. The Agentry client simply force closes.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

I have been unable to get my Agentry 6.1 generated certificates to load on either of my Android devices still to test myself.  I have been successful with my SMP3 certificates so I must have soemthing wrong in my process and will have to investigate further when I have some free time.

--Bill

tahir_z
Contributor
0 Kudos

Hi Bill,

I also have problem on running my Agenrty 6.1 client in android devices. It works in ATE and WPF. I have installed cert to device and can see in Trusted Certificates.

The error i am getting is : "SSL Signature Verification Failure, Communication Error (14)".

Only in Agentry 6.1.3.2001 client version it runs fine. Either it does not see the certifcate or does it have any other thing that i missed.

Kind Regards

Tahir