password error on iOS build?

127 views
Skip to first unread message

osy...@gmail.com

unread,
Nov 12, 2012, 8:12:55 AM11/12/12
to codenameone...@googlegroups.com
Hi
I've got a strange problem concering an iOS debug build. I worked my way through the certification/provisioning stuff twice to get a debug build from the CodenameOne servers.
But I get errors concerning the password:

java -Xmx1024m -jar xmlvm.jar --in=/var/folders/hw/g63zm48s7fj645mwsnktjx340000gn/T/build4963036112186300591xxx/classes --resource=/var/folders/hw/g63zm48s7fj645mwsnktjx340000gn/T/build4963036112186300591xxx/res/ --resource=/var/folders/hw/g63zm48s7fj645mwsnktjx340000gn/T/build4963036112186300591xxx/btres/ --lib=libzbar.a --out=/var/folders/hw/g63zm48s7fj645mwsnktjx340000gn/T/build4963036112186300591xxx --target=iphonec --app-name=CTMobile -DXcodeProject=ios -DBundleIdentifier=ch.osys.certificationtool -DBundleVersion=1.0 -DBundleDisplayName=CTMobile -DStatusBarHidden=false -DPrerenderedIcon=false -DApplicationExits=true -DInterfaceOrientation=UIInterfaceOrientationPortrait
openssl pkcs12 -in /var/folders/hw/g63zm48s7fj645mwsnktjx340000gn/T/Cert1645999610118383382.p12 -out cert.crt.pem -password pass:$mypassword$ -passout pass:password
Mac verify error: invalid password?


Interestingly enough the password $mypassword$ isn't the one I provided in the NetBeans plugin nor is it the one of the certificate. It may be one I use earlier, but it's definitively not the one I entered in this context.
Where can I reset it?
Regards
Claus

Shai Almog

unread,
Nov 12, 2012, 10:29:34 AM11/12/12
to codenameone...@googlegroups.com, osy...@gmail.com
Did you define a global password or a project specific password. This is the password we extract from the iOS specific settings usually in the codenameone_settings.properties file which is set by the project properties. Or from the global Codename One settings in the NetBeans preferences.

osy...@gmail.com

unread,
Nov 12, 2012, 10:38:42 AM11/12/12
to codenameone...@googlegroups.com, osy...@gmail.com
I did not specify a password in the general NetBeans-Settings (Tools -> Options -> Misc -> CodenameOne). I set it on the project.
When I look at the codenameone_settings.properties file, it wasn't updated, when I changed it in project->properties->CodenameOne->iOS->Certificate Password.
I changed it in the properties file and I'll start another build ...

osy...@gmail.com

unread,
Nov 12, 2012, 10:46:40 AM11/12/12
to codenameone...@googlegroups.com, osy...@gmail.com
It failed again. I don't know, where the password is coming from. The password from the properties file (codename1.ios.debug.certificatePassword) doesn't correspond to the one reported by the error log.
Thanks for your help.
Regards
Claus

Shai Almog

unread,
Nov 13, 2012, 12:42:21 AM11/13/12
to codenameone...@googlegroups.com, osy...@gmail.com
The password in the error log was an old password that you used right?
Are you sure you are looking at the right settings file? You have one for every project and in NetBeans when you move to the Files section it shifts the focus to a different project sometimes (very annoying and confusing).

Notice that you have two build types, debug & release (always send a debug build since the release can only be sent to the appstore). Make sure you configured the debug version properly.
You can go to the build.xml file and place an <echo> tag in the build-for-ios-device target where you can print the value of the password sent: ${codename1.ios.debug.certificatePassword}

Osys Osys AG

unread,
Nov 14, 2012, 1:02:26 AM11/14/12
to CodenameOne Discussions
Yes, it was an old password.
I double-checked the path to the properies-file and it's contents.
It's definitely the matching file containing the new password.
I'm doing a debug build using the debug certificate/provisioning
profile I got using the Apple services.
After inserting the echo, I see that the password sent to your service
is the old one. I'm not quite sure where this is coming from :-/
I'll scan my config files, while burning my builds on your servers ...
Regards
Claus

Osys Osys AG

unread,
Nov 14, 2012, 1:15:22 AM11/14/12
to CodenameOne Discussions
I found it: for the new password I had doubled the '$', but those get
truncated and I end up with the original text ;-)
Thanks for your help!

Clement Levallois

unread,
Jul 29, 2015, 4:58:39 AM7/29/15
to CodenameOne Discussions, osy...@gmail.com
Hello,

Got the same issue here with a password that had two $ characters at the end. Maybe worth correcting this bug to save the trouble to other users?
Reply all
Reply to author
Forward
0 new messages