4 {- join("\n", @autowarntext) -}
10 openssl-spkac - SPKAC printing and generating command
18 [B<-digest> I<digest>]
19 [B<-key> I<filename>|I<uri>]
20 [B<-keyform> B<DER>|B<PEM>|B<P12>|B<ENGINE>]
22 [B<-challenge> I<string>]
24 [B<-spkac> I<spkacname>]
25 [B<-spksect> I<section>]
28 {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_provider_synopsis -}
32 This command processes Netscape signed public key and challenge
33 (SPKAC) files. It can print out their contents, verify the signature and
34 produce its own SPKACs from a supplied private key.
42 Print out a usage message.
44 =item B<-in> I<filename>
46 This specifies the input filename to read from or standard input if this
47 option is not specified. Ignored if the B<-key> option is used.
49 =item B<-out> I<filename>
51 Specifies the output filename to write to or standard output by
54 =item B<-digest> I<digest>
56 Use the specified I<digest> to sign a created SPKAC file.
57 The default digest algorithm is MD5.
59 =item B<-key> I<filename>|I<uri>
61 Create an SPKAC file using the private key specified by I<filename> or I<uri>.
62 The B<-in>, B<-noout>, B<-spksect> and B<-verify> options are ignored if
65 =item B<-keyform> B<DER>|B<PEM>|B<P12>|B<ENGINE>
67 The key format; unspecified by default.
68 See L<openssl-format-options(1)> for details.
70 =item B<-passin> I<arg>
72 The input file password source. For more information about the format of I<arg>
73 see L<openssl-passphrase-options(1)>.
75 =item B<-challenge> I<string>
77 Specifies the challenge string if an SPKAC is being created.
79 =item B<-spkac> I<spkacname>
81 Allows an alternative name form the variable containing the
82 SPKAC. The default is "SPKAC". This option affects both
83 generated and input SPKAC files.
85 =item B<-spksect> I<section>
87 Allows an alternative name form the section containing the
88 SPKAC. The default is the default section.
92 Don't output the text version of the SPKAC (not used if an
93 SPKAC is being created).
97 Output the public key of an SPKAC (not used if an SPKAC is
102 Verifies the digital signature on the supplied SPKAC.
104 {- $OpenSSL::safe::opt_engine_item -}
106 {- $OpenSSL::safe::opt_provider_item -}
112 Print out the contents of an SPKAC:
114 openssl spkac -in spkac.cnf
116 Verify the signature of an SPKAC:
118 openssl spkac -in spkac.cnf -noout -verify
120 Create an SPKAC using the challenge string "hello":
122 openssl spkac -key key.pem -challenge hello -out spkac.cnf
124 Example of an SPKAC, (long lines split up for clarity):
126 SPKAC=MIG5MGUwXDANBgkqhkiG9w0BAQEFAANLADBIAkEA\
127 1cCoq2Wa3Ixs47uI7FPVwHVIPDx5yso105Y6zpozam135a\
128 8R0CpoRvkkigIyXfcCjiVi5oWk+6FfPaD03uPFoQIDAQAB\
129 FgVoZWxsbzANBgkqhkiG9w0BAQQFAANBAFpQtY/FojdwkJ\
130 h1bEIYuc2EeM2KHTWPEepWYeawvHD0gQ3DngSC75YCWnnD\
131 dq+NQ3F+X4deMx9AaEglZtULwV4=
135 A created SPKAC with suitable DN components appended can be fed to
138 SPKACs are typically generated by Netscape when a form is submitted
139 containing the B<KEYGEN> tag as part of the certificate enrollment
142 The challenge string permits a primitive form of proof of possession
143 of private key. By checking the SPKAC signature and a random challenge
144 string some guarantee is given that the user knows the private key
145 corresponding to the public key being certified. This is important in
146 some applications. Without this it is possible for a previous SPKAC
147 to be used in a "replay attack".
156 The B<-engine> option was deprecated in OpenSSL 3.0.
158 The B<-digest> option was added in OpenSSL 3.0.
162 Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
164 Licensed under the Apache License 2.0 (the "License"). You may not use
165 this file except in compliance with the License. You can obtain a copy
166 in the file LICENSE in the source distribution or at
167 L<https://www.openssl.org/source/license.html>.