Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8853255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:36:26+00:00 2026-06-14T13:36:26+00:00

I have a valid P12 file. I need to instantiate an X509certificate object, so

  • 0

I have a valid P12 file. I need to instantiate an X509certificate object, so that I can use it as a client side certificate.

I realize that there is already a similar question answered here, How to instantiate javax.security.X509Certficate object from a p12 certificate (contains certificate + private key)

But in Blackberry, the getInstance(String) method is not available for KeyStore. It’s available for DeviceKeyStore and TrustedKeyStore. But we can’t pass the “PKCS12” parameter to the getInstance() method.

Also DeviceKeyStore or TrustedKeyStore don’t have the load methods. They have the set methods. But I’m not sure how we can pass fileinputstream parameter to that one.

Has anyone tried this? Do you know what alternate methods are available for this?

Thanks for your help.

Edit:
There is a method for doing this for PEM file,(Install SSL Certificate with BlackBerry App) which is what I used initially to try to make it work. But the formats differ. PEM is a Base64 format, and it contains just the certificate.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:36:27+00:00Added an answer on June 14, 2026 at 1:36 pm

    You can invoke an external application for doing that. There is a partial solution:
    http://supportforums.blackberry.com/t5/Java-Development/Handling-a-p12-certificate-store/td-p/654127

    But for some reason you don’t get the import menu! The piece of code:

    Invocation certInvocation = new Invocation( "path to .p12 on SD Card");
    certInvocation.setResponseRequired( false );
    certInvocation.setID( BlackBerryContentHandler.ID_MEDIA_CONTENT_HANDLER );
    certInvocation.setAction( ContentHandler.ACTION_OPEN );
    certInvocation.setType( "application/x-pkcs12" );
    
    Registry registry = Registry.getRegistry( Application.class.getName() );
    try {
    
        registry.invoke( certInvocation );
    }
    catch (Throwable t) {}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a valid link that goes to a picture located on my web
I have a valid certificate issued by the spanish authority (FNMT) and I want
I have a webservice that I am testing. When I use the personal asp.net
My question may not make sense but I have valid reason. We use .net
I have an object that has a start date and an end date, in
I have a problem with authentication: Users that have valid domain credentials are logined
I have a valid keystore on my local development machine, which contains a certificate
I'm trying to write a query to tell me which orders have valid promocodes.
Is there any way to enclose <style> tags within <body> and still have valid
I have a valid reason for wanting to do this, but it's a long

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.