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

Java Development

Reply
Regular Contributor
MLUY
Posts: 51
Registered: ‎07-20-2011
My Device: PlayBook

Is it possible to import a PFX or P12 file programmatically?

My underlying need is to connect to a Web service that has Two Factor Authentication enabled. 

 

I currently can do this, but I had first to install the client certificate manually (copy PFX to SDCard, open it, enter its password, select certificate, import). 

 

What I would need is some API to install this certificate automatically, but I wonder if that's even possible (perhaps using KeyStore class?)

 

I think the answer is not... please let me know that I'm wrong. 

Visitor
fbobbio
Posts: 1
Registered: ‎04-10-2012
My Device: Simulator

Re: Is it possible to import a PFX or P12 file programmatically?

This is an old thread but I'm facing the same problem.

 

Is there a way to install a certificate stored in a KeyStore programatically?

 

Thanks