Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 22, 2015 at 02:11 PM

    Hi, Eduard.

    Build 6398.0 had a bug around this.  You said you're running 6620 SP5 but the SLL won't be tied to a service pack directly.  So just to be sure, you're running Afaria version 6620 *and* the SLL bundle version 6620, right? 

    Here's a KBA related to that bug:

    https://service.sap.com/sap/support/notes/2034345

    If your SLL bundle is also 6620 then it shouldn't be the exact same bug but it might be a new variant of it.  Does it only occur with the certificate retrieval or do you have the problem with retrieving configuration data as well?

    Thanks,

    Keith Nunn
    SAP Active Global Support

    Message was edited by: Keith Nunn

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Michael Loop

      Hi Micheal,

      sorry for my late reply. We downloaded the SLL package 2 weeks ago.

      I opened .\ios\Version_iOS.txt, and there is 7.00.6620.0 as version number.

      Regards,

      Eduard

  • Jun 23, 2015 at 03:52 PM

    Hi Eduard,

    Are you certain that the library wasn't configured correctly?

    What was the return value for the second call?

    Are you certain that the bundleID was in scope and has the expected value on the second call?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member John Taylor

      Sorry for my late reply.

      We deployed the sample app CertsOnBoard which resides in the SLL package, and tried to retrieve user certificates. We generated a private and public key and gave active directory credentials and the generated key pair to the function [retrieveUserCertificate:privateKeyRef,......., outCertificate:&certRef].

      As result we get the return code 7 (kCertificateUnavailable).

      What could be the reason for this ? As I worte some posts above that the general configuration profile enrollment through Afaria for device managment is working. And there are user certificates included which are in the ios system keychain.