Accessing Certificates in Windows System Stores from Java - Java

This is a discussion on Accessing Certificates in Windows System Stores from Java - Java ; Hi, Is there a standard way in Java to get access to a certificate stored in one of the "system stores" in Windows ? What about accessing the (references to) the keypairs stored in "key containers" ? Thank you !...

+ Reply to Thread
Results 1 to 4 of 4

Accessing Certificates in Windows System Stores from Java

  1. Default Accessing Certificates in Windows System Stores from Java

    Hi,

    Is there a standard way in Java to get access to a certificate stored
    in one of the "system stores" in Windows ? What about accessing the
    (references to) the keypairs stored in "key containers" ?

    Thank you !


  2. Default Re: Accessing Certificates in Windows System Stores from Java

    Your best bet is to find some Java/Win32-COM bridge and use CAPICOM
    which exposes provides most of the useful functionality in CryptoAPI including
    powerful support for searching CryptoAPI certificate store/

    - Mitch Gallant
    MVP Security
    JavaScience Consulting
    www.jensign.com

    <smveloso> wrote in message news:1117831284.262705.220580@g43g2000cwa.googlegroups.com...
    > Hi,
    >
    > Is there a standard way in Java to get access to a certificate stored
    > in one of the "system stores" in Windows ? What about accessing the
    > (references to) the keypairs stored in "key containers" ?
    >
    > Thank you !
    >




  3. Default Re: Accessing Certificates in Windows System Stores from Java

    Hi Mitch !

    Thank you for the reply ! I did not realise such a bridge
    existed...

    Would that also solve the problem of locating the (handles to)
    private keys that are stored within containers managed by CSPs ? I ask
    because it seems to me that under Microsoft´s implementation, the only
    way to get access to a "private key context" is through a particular
    certificate (which seems strange since a certificate should hold a
    *public* key). In other words: by using CAPICOM through a bridge, will
    my Java applications be able to request the hashing/signing of a
    document from a particular CSP ?

    May I ask you something else ? You said that is my "best bet"...
    would there be any alternatives ? Somehow I do not feel safe using a
    java - win32 bridge...


  4. Default Re: Accessing Certificates in Windows System Stores from Java

    Hi,

    Use the Assembla JCE provider (free, but cannot export the private
    keys):
    https://download.assembla.se/jceprovider/

    Or use Pheox JCAPI (commercial, but the evaluation version is fully
    functional and can export your private keys, if exportable through
    CAPI):
    http://www.pheox.com/products/jcapi/

    Hope it will solve your problems.

    Regards,
    Tommy Grandefors


+ Reply to Thread

Similar Threads

  1. IIS 6, Windows 2003 Release 2, SSL and certificates
    By Application Development in forum Inetserver
    Replies: 4
    Last Post: 11-23-2007, 09:09 AM
  2. Java and X509 Certificates .. help!!
    By Application Development in forum Java
    Replies: 1
    Last Post: 09-05-2006, 02:08 PM
  3. Accessing webservice using VB6.0 in Windows 98 Operating System
    By Application Development in forum XML SOAP
    Replies: 0
    Last Post: 07-31-2005, 05:39 AM
  4. Need help accessing Certificates (SSL)
    By Application Development in forum Java
    Replies: 1
    Last Post: 04-15-2004, 04:14 AM
  5. Accessing Windows login information from Java webapp
    By Application Development in forum Java
    Replies: 3
    Last Post: 09-24-2003, 02:45 PM