iOS Question MAC verification failed during PKCS12 import

netkomm

Active Member
Licensed User
Longtime User
Hi Erel,

I have installed B4I on a second computer and I copied over the content of the "keyes" folder.

Testing a sample app I get this error

Error: security: SecKeychainItemImport: MAC verification failed during PKCS12 import (wrong password?)

How to sort it out?
 

cirollo

Active Member
Licensed User
Longtime User
Hi Erel!

I've installed the b4i 1.21 version on a new pc, then I opened my mac with local builder and overwritten the files in libs with the new files in the zip of the 1.21
the ip and installation of the server are still the same, from the pc I can ping and see the server on the mac running.
I also took the keys folder from the old to the new pc and setted the correct password in private sign key.
But, when I try to build the bridge app I get...

B4X:
Building designer app.                  0.62
Building Xcode project                  0.29
Sending data to remote compiler.        Error
Out: Build settings from command line:
    ARCHS = armv7
    CODE_SIGN_IDENTITY = iPhone
    CONFIGURATION_BUILD_DIR = /Users/cirollo/macserver-aa/UploadedProjects/cirollo/Payload
    OTHER_CODE_SIGN_FLAGS = --keychain cirollo
    PRODUCT_NAME = B4i-Bridge
    PROVISIONING_PROFILE = 4bbf7d75-bdd8-4791-be4e-90fc688cfbc5

=== BUILD TARGET B4iProject OF PROJECT B4iProject WITH CONFIGURATION Release ===

Check dependencies
Code Sign error: No codesigning identities found: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings (“development”) were found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.1'


Error: ** BUILD FAILED **


The following build commands failed:
    Check dependencies
(1 failure)

why? Do I need to make new keys when moving to a new pc?

UPDATE

I get the same error also on the old pc, but maybe because I'm using b4i 1.0 with updated libs on the local mac builder, I guess....

This is the log on the mac local builder side...

B4X:
Last login: Mon Dec 22 19:59:00 on console

MacBook-Pro-di-Ciro-Marciano:~ cirollo$ cd macserver-aa

MacBook-Pro-di-Ciro-Marciano:macserver-aa cirollo$ java -jar b4ibuildserver.jar

Build server version: 1

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2014-12-22 20:06:54.492:INFO::main: Logging initialized @424ms

Loading default configuration file.

AppPath=/Users/cirollo/macserver-aa

2014-12-22 20:06:54.700:INFO:oejs.Server:main: jetty-9.1.z-SNAPSHOT

2014-12-22 20:06:54.741:WARN:oejh.MimeTypes:main: java.util.MissingResourceException: Can't find bundle for base name org/eclipse/jetty/http/encoding, locale it_IT

2014-12-22 20:06:54.774:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@61a52fbd{/,file:/Users/cirollo/macserver-aa/www,AVAILABLE}

2014-12-22 20:06:54.778:INFO:oejs.AbstractNCSARequestLog:main: Opened /Users/cirollo/macserver-aa/logs/b4j-2014_12_22.request.log

2014-12-22 20:06:54.819:INFO:oejs.ServerConnector:main: Started ServerConnector@357246de{HTTP/1.1}{0.0.0.0:51041}

2014-12-22 20:06:55.214:INFO:oejs.ServerConnector:main: Started ServerConnector@4288b458{SSL-http/1.1}{0.0.0.0:51042}

2014-12-22 20:06:55.215:INFO:oejs.Server:main: Started @1162ms

Build server is ready

https://192.168.1.180:51042

http://192.168.1.180:51041

Adding user to keychain: cirollo

success: true, 50

success: true, 1

20:09:53| Compilation time: 225, cirollo, queue: 0, success: false

Adding user to keychain: cirollo

success: true, 1

20:11:58| Compilation time: 191, cirollo, queue: 0, success: false

Adding user to keychain: cirollo

success: true, 1

20:18:28| Compilation time: 161, cirollo, queue: 0, success: false

Adding user to keychain: cirollo

success: true, 1

20:23:48| Compilation time: 174, cirollo, queue: 0, success: false

Adding user to keychain: cirollo

success: true, 65

20:24:57| Compilation time: 2778, cirollo, queue: 0, success: false

success: true, 65

20:29:32| Compilation time: 1592, cirollo, queue: 0, success: false

success: true, 65

20:37:38| Compilation time: 1674, cirollo, queue: 0, success: false
 
Last edited:
Upvote 0
Top