hi..

first, i don't know whether this problem is real library error. if not,
sorry.

i wrote java program like this,

1. import pfx(pkcs#12) format data (include private key)
2. i confirm that data saved in cryptostore( Keys Unique ID is the same ID
as CA Certs ID)

Keys:
UniqueID: -372271904617143425344109813470305848694280946854
UniqueID: 378529106678756258866150402244775195236504039535
UniqueID: 462887797772732391472542599934421183527115666909

CA Certs:
Name: xxxx
Issuer: CN=CrossCert SC Class 1 Individual Subscriber CA, OU=Terms of use at
ht
ps://www.crosscert.com/RPA (c)99, OU=VeriSign Trust Network, O="KECA, Inc."
UniqueID: 462887797772732391472542599934421183527115666909
SSL     Trust: 8
Email Trust: 8
OS Trust: 8

3. finally, i call findPrivKeyByCert(x509cert a) function with above
certificate but i cannot found private key.

what's wrong?

if i program without findPrivKeyByCert(), i read cert's uniqueID,read keys
in cryptostore, find keys that cert's UID is the same as private key's uid.
but in jss api document, PrivateKey.getUniqueID() was deprecated.

how can i find private key by certs without deprecated method ?





Reply via email to