Title: Need help figuring out CryptoBase#getCertificates(alias)
How is it that you'd expect to get a certificate for / related to a symmetric key?  What would you expect such a certificate to look like?  What would you expect a signature using only a symmetric key would look like?

The discussion related to the embedded key stuff relates (predictably) only to encryption and not to signature (as would be expected of any symmetric scheme), yet you seem to be trying to do signature stuff...

What is it you are trying to accomplish here?

PK

Ostermueller, Erik wrote:
Whoops!  Previous file is bad.  Try this one:  http://www.mediafire.com/?d3hx342xtxm
 
The new file name is symmetric-encryption3.zip

From: Ostermueller, Erik [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 24, 2008 2:21 PM
To: [email protected]
Subject: RE: Need help figuring out CryptoBase#getCertificates(alias)

ok,  I've re-worked my example ( download the little zip file here: http://www.mediafire.com/?mcdmogmnv4x ) following the wss4j symmetric encryption example referenced in this thread:  http://markmail.org/message/swsdex5tinkfht42#query:wss4j%20symmetric+page:1+mid:wqeg3cluw4cn2fr3+state:results
 
To get this example running, just configure the stuff in bin/setenv.cmd and run "ant client"
No need to run the server -- it fails before it gets there with the message:  Unexpected number of X509Data: for Signature
So the error hasn't changed, but it is tough to tell whether I've got this configured correctly.
 
At the top of the method CryptoBase.getCertificates(alias), the methods isKeyEntry(), containsAlias(), getKey() and the enum aliases on CryptoBase.keystore all seem to contain the right alias/key data. 
 
As far as I can see, the issue is that the methods mentioned above on the CryptoBase.keystore instance return good-looking data but the method getCertificateChain(alias) -- on the exact same instance -- retuns null.
 
Thanks,
--Erik
 


--
[Fwd: test]

 

Patrick Kobly, CISSP

 

T: 403-274-9033

C: 403-463-6141

F: 866-786-9459

56 388 Sandarac Dr NW
Calgary, Alberta
T3K 4E3
http://www.kobly.com

 

begin:vcard
fn:Patrick Kobly
n:Kobly;Patrick
adr:;;56 388 Sandarac Dr NW;Calgary;AB;T3K 4E3;Canada
email;internet:[EMAIL PROTECTED]
tel;work:(403) 218 - 8376
tel;fax:(866) 786 - 9459
tel;home:(403) 274 - 9033
tel;cell:(403) 669 - 4631
url:http://www.kobly.com
version:2.1
end:vcard

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to