Hi!

Due to great demand, I made this simple program that analyze let's call
the 'SPKAC' files and can return some info. Here the help:

        $ openssl spkac
        usage: spkac args
        
         -in infile  - Input file [required]
         -verbose    - Print a lot of info lines
         -keysize    - Print SPKAC public key size
         -verify     - Verify SPKAC public key signature
         -noout      - Does not print hex value of public key

example:

        $ openssl spkac -in request -keysize -verify -noout

        Key Size is 512
        Signature ok
        
        $ openssl spkac -in request
        SPKAC Public Key = {
        0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00, ...};

I think it is useful, and I hope you'll include in the next SNAP of OpenSSL.
(Please let me know whatever will be your decision).


Installation of this program (for who wants to test it):
========================================================

Build your OpenSSL 0.9.4 as normal. Now go to the apps/ dir. Copy the spkac.c
file there. Edit the Makefile and add let's say after pkcs8/pkcs8.c/pkcs8.o
spkca/spkca.c/spkac.o rispectively. Now edit the progs.h file and add the
following (lines are not really important if you know what you are doing):

at line 31:

        extern int spkac_main(int argc,char *argv[]);

and at line 59:

        {FUNC_TYPE_GENERAL,"spkac",spkac_main},

I think this is all. Now simple do:

        $ make
        $ make install

and you should be set, just try the program and please report bugs/enhancements
you might want to add.

C'you,

        Massimiliano Pala ([EMAIL PROTECTED])

P.S.: Please if you know a simpler installation method, report it (either to me
and the list). Thanks!

S/MIME Cryptographic Signature

Reply via email to