5 spkac - SPKAC printing and generating utility
14 [B<-challenge string>]
24 The B<spkac> command processes Netscape signed public key and challenge
25 (SPKAC) files. It can print out their contents, verify the signature and
26 produce its own SPKACs from a supplied private key.
28 =head1 COMMAND OPTIONS
34 This specifies the input filename to read from or standard input if this
35 option is not specified. Ignored if the B<-key> option is used.
37 =item B<-out filename>
39 specifies the output filename to write to or standard output by
44 create an SPKAC file using the private key in B<keyfile>. The
45 B<-in>, B<-noout>, B<-spksect> and B<-verify> options are ignored if
48 =item B<-passin password>
50 the input file password source. For more information about the format of B<arg>
51 see the B<PASS PHRASE ARGUMENTS> section in L<openssl(1)|openssl(1)>.
53 =item B<-challenge string>
55 specifies the challenge string if an SPKAC is being created.
57 =item B<-spkac spkacname>
59 allows an alternative name form the variable containing the
60 SPKAC. The default is "SPKAC". This option affects both
61 generated and input SPKAC files.
63 =item B<-spksect section>
65 allows an alternative name form the section containing the
66 SPKAC. The default is the default section.
70 don't output the text version of the SPKAC (not used if an
71 SPKAC is being created).
75 output the public key of an SPKAC (not used if an SPKAC is
80 verifies the digital signature on the supplied SPKAC.
87 Print out the contents of an SPKAC:
89 openssl spkac -in spkac.cnf
91 Verify the signature of an SPKAC:
93 openssl spkac -in spkac.cnf -noout -verify
95 Create an SPKAC using the challenge string "hello":
97 openssl spkac -key key.pem -challenge hello -out spkac.cnf
99 Example of an SPKAC, (long lines split up for clarity):
101 SPKAC=MIG5MGUwXDANBgkqhkiG9w0BAQEFAANLADBIAkEA1cCoq2Wa3Ixs47uI7F\
102 PVwHVIPDx5yso105Y6zpozam135a8R0CpoRvkkigIyXfcCjiVi5oWk+6FfPaD03u\
103 PFoQIDAQABFgVoZWxsbzANBgkqhkiG9w0BAQQFAANBAFpQtY/FojdwkJh1bEIYuc\
104 2EeM2KHTWPEepWYeawvHD0gQ3DngSC75YCWnnDdq+NQ3F+X4deMx9AaEglZtULwV\
109 A created SPKAC with suitable DN components appended can be fed into
112 SPKACs are typically generated by Netscape when a form is submitted
113 containing the B<KEYGEN> tag as part of the certificate enrollment
116 The challenge string permits a primitive form of proof of possession
117 of private key. By checking the SPKAC signature and a random challenge
118 string some guarantee is given that the user knows the private key
119 corresponding to the public key being certified. This is important in
120 some applications. Without this it is possible for a previous SPKAC
121 to be used in a "replay attack".