dev wrote:
> Hey,
> Lets say I have signed "foobar" using crypto.signText("foobar");
> How do I verify that signature?
> 
> I used signVer from the NSS tools :
> #./signver -s ./signature

./signver
Usage:  signver  options
Options:
  -a                           signature file is ASCII
  -d certdir                   directory containing cert database
  -i dataFileName              input file name containing data,
                               use - for stdin
  -s signatureFileName         input file name containing signature,
                               use - for stdin
  -o outputFileName            output file name, default stdout
  -A                           display all information from pkcs #7
  -V                           verify the signed object and display result
  -V -v                        verify the signed object and display
                               result and reason for failure
Version 2.0

It needs to know where your security database is (secmod.db, key3.db, 
cert8.db) with the -d option.  All mozilla tools assume it's in 
~/.netscape or something similar by default.  Since almost no one stores 
their credentials there get used to using the -d (or -dbdir for modutil) 
option with just about every NSS command-line tool you use.

Dave
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to