Examples:
verifysig.exe signature contentfile
verifysig.exe signature contentfile V
Java 2 Interop:
Signatures generated using Java 2 java.security.Signature.sign() are in
PKCS#1 v1.5 format, and for the same hash algorithm, content and RSA keys, are identical to
signatures generated with .NET
System.Security.Cryptography.RSAPKCS1SignatureFormatter.CreateSignature().
Certificate files for verification purposes can be easily exported from Java 2
keystores using:
byte[] keycert = keystore.getCertificate(
CMS/PKCS#7 messages:
Cryptographic Message Syntax
(CMS) and PKCS#7 specify a proposed standard for
encapsulation of signatures along with certificates and other data. CMS/PKCS#7
messages are not currently supported natively in .NET Framework 1.0/1.1 nor in
Java 2 v1.4. However the next release of .NET Framework will have some support
for CMS/PKCS#7 messages. CMS/PKCS#7 is currently supported in
CAPICOM 2
and the underlying
CryptoAPI as well as 3rd party implementations for Java.
Michel I. Gallant
neutron@istar.ca