4 {- join("\n", @autowarntext) -}
10 openssl-spkac - SPKAC printing and generating command
19 [B<-keyform> B<DER>|B<PEM>|B<ENGINE>]
21 [B<-challenge> I<string>]
23 [B<-spkac> I<spkacname>]
24 [B<-spksect> I<section>]
27 {- $OpenSSL::safe::opt_engine_synopsis -}
28 {- $OpenSSL::safe::opt_provider_synopsis -}
30 =for openssl ifdef engine
34 This command processes Netscape signed public key and challenge
35 (SPKAC) files. It can print out their contents, verify the signature and
36 produce its own SPKACs from a supplied private key.
44 Print out a usage message.
46 =item B<-in> I<filename>
48 This specifies the input filename to read from or standard input if this
49 option is not specified. Ignored if the B<-key> option is used.
51 =item B<-out> I<filename>
53 Specifies the output filename to write to or standard output by
56 =item B<-key> I<keyfile>
58 Create an SPKAC file using the private key in I<keyfile>. The
59 B<-in>, B<-noout>, B<-spksect> and B<-verify> options are ignored if
62 =item B<-keyform> B<DER>|B<PEM>|B<ENGINE>
64 The key format; the default is B<PEM>.
65 See L<openssl(1)/Format Options> for details.
67 =item B<-passin> I<arg>
69 The input file password source. For more information about the format of I<arg>
70 see L<openssl(1)/Pass Phrase Options>.
72 =item B<-challenge> I<string>
74 Specifies the challenge string if an SPKAC is being created.
76 =item B<-spkac> I<spkacname>
78 Allows an alternative name form the variable containing the
79 SPKAC. The default is "SPKAC". This option affects both
80 generated and input SPKAC files.
82 =item B<-spksect> I<section>
84 Allows an alternative name form the section containing the
85 SPKAC. The default is the default section.
89 Don't output the text version of the SPKAC (not used if an
90 SPKAC is being created).
94 Output the public key of an SPKAC (not used if an SPKAC is
99 Verifies the digital signature on the supplied SPKAC.
101 {- $OpenSSL::safe::opt_engine_item -}
103 {- $OpenSSL::safe::opt_provider_item -}
109 Print out the contents of an SPKAC:
111 openssl spkac -in spkac.cnf
113 Verify the signature of an SPKAC:
115 openssl spkac -in spkac.cnf -noout -verify
117 Create an SPKAC using the challenge string "hello":
119 openssl spkac -key key.pem -challenge hello -out spkac.cnf
121 Example of an SPKAC, (long lines split up for clarity):
123 SPKAC=MIG5MGUwXDANBgkqhkiG9w0BAQEFAANLADBIAkEA\
124 1cCoq2Wa3Ixs47uI7FPVwHVIPDx5yso105Y6zpozam135a\
125 8R0CpoRvkkigIyXfcCjiVi5oWk+6FfPaD03uPFoQIDAQAB\
126 FgVoZWxsbzANBgkqhkiG9w0BAQQFAANBAFpQtY/FojdwkJ\
127 h1bEIYuc2EeM2KHTWPEepWYeawvHD0gQ3DngSC75YCWnnD\
128 dq+NQ3F+X4deMx9AaEglZtULwV4=
132 A created SPKAC with suitable DN components appended can be fed to
135 SPKACs are typically generated by Netscape when a form is submitted
136 containing the B<KEYGEN> tag as part of the certificate enrollment
139 The challenge string permits a primitive form of proof of possession
140 of private key. By checking the SPKAC signature and a random challenge
141 string some guarantee is given that the user knows the private key
142 corresponding to the public key being certified. This is important in
143 some applications. Without this it is possible for a previous SPKAC
144 to be used in a "replay attack".
153 Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
155 Licensed under the Apache License 2.0 (the "License"). You may not use
156 this file except in compliance with the License. You can obtain a copy
157 in the file LICENSE in the source distribution or at
158 L<https://www.openssl.org/source/license.html>.