Skip to Content
1
Former Member
Jun 19, 2015 at 11:56 AM

Afaria Static Link Library - Url was unsigned or had an invalid signature ...

15 Views

Hello,

we're trying to initialise the Afaria SLL in our iOS app.

For this we are calling at first the method ( [SeedingAPISynchronous initializeLibrary:NULL inUrlScheme:urlScheme forceSigning:NO, withBundelID:bundleID] ) with in our xcode project defined URL Type in the variable urlScheme and the bundleID of our iOS app.

In our handler method for callbacks( (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation ) we get a response from the Afaria Client App with an url which looks like this

cert://action=none&AppId=......&ClientId=......&PackageServerURL=https://xxxxxxxxxxxxxxx:443/ias_relay_server/client/rs_client.dll/PortalFarm/ps/ps.svc


for sourceApplication we get as value the bundleID of our Afaria Client App and for the parameter annotation the value null.

As our next step we re-initialize the Afaria Static Link Library with the same call ( [SeedingAPISynchronous initializeLibrary:url inUrlScheme:urlScheme forceSigning:NO, withBundelID:bundleID] ) except we set the initializeLibrary parameter to the url we got as response for our first call.

This is what the Afaria Static Link Library writes to console output:

Jun 19 13:08:53 iPhone5s AfariaCertTest[790] <Warning>: SLL initializeLibrary received bundleID: com.xxxxxxx.AfariaCertTest

Jun 19 13:08:53 iPhone5s AfariaCertTest[790] <Warning>: Afaria SLL queryStr:

cert://action=none&AppId=.....&ClientId=.......&PackageServerURL=https://xxxxxxxxxxxxxxxxx:443/ias_relay_server/client/rs_client.dll/PortalFarm/ps/ps.svc

Jun 19 13:08:53 iPhone5s Afaria-SAP[781] <Warning>: [AipsController NitroDeskDidFailToLoad]

Jun 19 13:08:53 iPhone5s AfariaCertTest[790] <Warning>: Afaria SLL initializeLibrary: Evaluating url: cert://action=none&AppId=............&ClientId=...........&PackageServerURL=https://xxxxxxxxxxxxxx:443/ias_relay_server/client/rs_client.dll/PortalFarm/ps/ps.svc

Jun 19 13:08:53 iPhone5s AfariaCertTest[790] <Warning>: Afaria SLL initializeLibrary:URL was unsigned or had an invalid signature. Bundle ID was invalid or missing.

Jun 19 13:08:53 iPhone5s AfariaCertTest[790] <Warning>: Afaria SLL initializeLibrary:forcedValidSigning = false. Configuring Library despite invalid signature...

What are we doing wrong ? Is there something incorrect in our afaria configuration or in our app code ?


Thank you for your help.

Eduard


p.s.: We are using Afaria 7 SP5 Hotfix 9 and the SLL with version 7.00.6620.0 SP5