views:

23

answers:

0

Hi,

I have a problem with java KeyStore. I am using SunMSCAPI Provider to retrieve certificates from Windows-MY keystore. I have two certifcates there, both have been issued with the same parameters (C, CN, IssuedBy...), but they have different validity. SunMSCAPI Provider assigns them the same aliases. When I want to get this certificate from Windows-MY KeyStore with keystore.getCertificate(alias) method, I can get only first certificate.

Is there any way to set an unique alias value to each certificate in keystore?

Thanks.