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

New Contributor
Posts: 5
Registered: ‎06-20-2012
My Device: Curve 9360
My Carrier: SFR

How to revoke a certificate?



I want to revoke a certificate programmatically. I found the class net.rim.device.api.crypto.certificate.x509.X509CertificateRevocationList but I don't know to instanciate it.


The constructor has below parameters :

  • java.io.InputStream
  • net.rim.device.api.crypto.keystore.KeyStore

In my method I have the keystore object and the certificate (net.rim.device.api.crypto.certificate.x509.X509Certificate) to revoke but I don't know how to transform it into InputStream.


Someone has an idea about it, or another solution ?