james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Bryant <mgbry...@4mi.net>
Subject DomainKeys/crypto question
Date Tue, 14 Feb 2006 21:37:06 GMT
I'm currently working on a DomainKeys verification mailet.

I have been taking hints from the RFC which uses the openssl command  
line for illustrations. I have written a simple Java wrapper that  
makes system calls to openssl, and I'm using this wrapper to do  
signature verification. I admit this is not a very efficient way to  
perform the verification, but it has allowed me to spend more time on  
other issues like message canonicalization, and parsing the TXT  
records and signature header.

Does anyone have suggestions on how to do the verification in Java  
natively? I have a the public key which is published in a DNS record  
in PEM format, and I have the signature in Base64. It was a fairly  
simple exercise to map this data to the openssl command line.  
However, I am not sure how to instantiate the Java objects, namely  
java.security.cert.Certificate and java.security.Signature.

Any help is appreciated.

-Mike Bryant

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message