5 spkac - SPKAC printing and generating utility
15 [B<-challenge string>]
25 The B<spkac> command processes Netscape signed public key and challenge
26 (SPKAC) files. It can print out their contents, verify the signature and
27 produce its own SPKACs from a supplied private key.
29 =head1 COMMAND OPTIONS
35 Print out a usage message.
39 This specifies the input filename to read from or standard input if this
40 option is not specified. Ignored if the B<-key> option is used.
42 =item B<-out filename>
44 specifies the output filename to write to or standard output by
49 create an SPKAC file using the private key in B<keyfile>. The
50 B<-in>, B<-noout>, B<-spksect> and B<-verify> options are ignored if
53 =item B<-passin password>
55 the input file password source. For more information about the format of B<arg>
56 see the B<PASS PHRASE ARGUMENTS> section in L<openssl(1)>.
58 =item B<-challenge string>
60 specifies the challenge string if an SPKAC is being created.
62 =item B<-spkac spkacname>
64 allows an alternative name form the variable containing the
65 SPKAC. The default is "SPKAC". This option affects both
66 generated and input SPKAC files.
68 =item B<-spksect section>
70 allows an alternative name form the section containing the
71 SPKAC. The default is the default section.
75 don't output the text version of the SPKAC (not used if an
76 SPKAC is being created).
80 output the public key of an SPKAC (not used if an SPKAC is
85 verifies the digital signature on the supplied SPKAC.
89 specifying an engine (by its unique B<id> string) will cause B<spkac>
90 to attempt to obtain a functional reference to the specified engine,
91 thus initialising it if needed. The engine will then be set as the default
92 for all available algorithms.
98 Print out the contents of an SPKAC:
100 openssl spkac -in spkac.cnf
102 Verify the signature of an SPKAC:
104 openssl spkac -in spkac.cnf -noout -verify
106 Create an SPKAC using the challenge string "hello":
108 openssl spkac -key key.pem -challenge hello -out spkac.cnf
110 Example of an SPKAC, (long lines split up for clarity):
112 SPKAC=MIG5MGUwXDANBgkqhkiG9w0BAQEFAANLADBIAkEA1cCoq2Wa3Ixs47uI7F\
113 PVwHVIPDx5yso105Y6zpozam135a8R0CpoRvkkigIyXfcCjiVi5oWk+6FfPaD03u\
114 PFoQIDAQABFgVoZWxsbzANBgkqhkiG9w0BAQQFAANBAFpQtY/FojdwkJh1bEIYuc\
115 2EeM2KHTWPEepWYeawvHD0gQ3DngSC75YCWnnDdq+NQ3F+X4deMx9AaEglZtULwV\
120 A created SPKAC with suitable DN components appended can be fed into
123 SPKACs are typically generated by Netscape when a form is submitted
124 containing the B<KEYGEN> tag as part of the certificate enrollment
127 The challenge string permits a primitive form of proof of possession
128 of private key. By checking the SPKAC signature and a random challenge
129 string some guarantee is given that the user knows the private key
130 corresponding to the public key being certified. This is important in
131 some applications. Without this it is possible for a previous SPKAC
132 to be used in a "replay attack".
140 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
142 Licensed under the OpenSSL license (the "License"). You may not use
143 this file except in compliance with the License. You can obtain a copy
144 in the file LICENSE in the source distribution or at
145 L<https://www.openssl.org/source/license.html>.