Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Reply
Contributor
Posts: 19
Registered: ‎04-16-2013
My Device: PlayBook
My Carrier: N/A
Accepted Solution

Error loading certificate: Could not create EC public key

Hello,

I'm trying to set up a development environment for Android apps.

When running the BlackBerry Deployment Setup Wizard, I have this error in Signing Registration:

"Error loading certificate: java.io.IOException: subject key, Could not create EC public key"

I'm running Eclipse 3.8 on Linux Ubuntu 64 bits.

Any help is welcome.

Thanks!

Patrick

Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: Error loading certificate: Could not create EC public key

Hey Patrick,

 

I believe something like this may happen if you use a comma within your subject key - which could be your company name.

 

You could try either escaping these characters or removing them altogether.

 

    Justin

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Contributor
Posts: 19
Registered: ‎04-16-2013
My Device: PlayBook
My Carrier: N/A

Re: Error loading certificate: Could not create EC public key

[ Edited ]

Thanks for your reply.

But there is no comma at all, my company name is just a single word.

Patrick

 

Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: Error loading certificate: Could not create EC public key

1: Are you running the latest BlackBerry Plug-in for Android Development Tools

2: Which step of the wizard are you seeing this on?

 

    Justin

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Contributor
Posts: 19
Registered: ‎04-16-2013
My Device: PlayBook
My Carrier: N/A

Re: Error loading certificate: Could not create EC public key

1: Yes, version is 1.5.2.

2: In Signing Registration, when I click Next to import the certificate.

Highlighted
Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: Error loading certificate: Could not create EC public key

What is your company name out of curiosity?

 

Are you sure it is the same company on your certificate as the one provided for your .CSJ files?

 

    Justin

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: Error loading certificate: Could not create EC public key

Through some further troubleshooting, Patrick and I have reduced the issue down to a Java 1.7 incompatibility.

 

To all readers, our system requirements for the BlackBerry plug-in repackaging states a requirement of Java 1.6.

https://developer.blackberry.com/android/documentation/sys_requirements_1848536_11.html

 

Hopefully this can help out some other developers with a similar issue.

 

    Justin

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Contributor
Posts: 19
Registered: ‎04-16-2013
My Device: PlayBook
My Carrier: N/A

Re: Error loading certificate: Could not create EC public key

To complete Justin's answer, the error occurs with OpenJDK 6 and 7, but it works with JDK 6 from Sun (now Oracle). The OS is Ubuntu 12.04 64 bits.

New Member
Posts: 1
Registered: ‎05-09-2013
My Device: none
My Carrier: Telstra

Re: Error loading certificate: Could not create EC public key

Thanks Justin

 

I spent a long time trying to work this out. Momentics was working fine but not ADT. You were right, I needed to update my eclipse.ini and force the jvm to 1.6 and all works well.

 

When will the bb android tools be compatible with jdk7?

 

Dave

Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: Error loading certificate: Could not create EC public key

I'm glad that resolved your issue! I had a similar issue at home with some completely unrelated Maven builds that switching to 1.6 resolved.

 

I don't believe we have any dates or plans to officially support JDK7 quite yet, but I'm sure it's in the works.

 

    Justin

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com