1SPKAC(1)                            OpenSSL                           SPKAC(1)
2
3
4

NAME

6       openssl-spkac, spkac - SPKAC printing and generating utility
7

SYNOPSIS

9       openssl spkac [-help] [-in filename] [-out filename] [-key keyfile]
10       [-keyform PEM|DER|ENGINE] [-passin arg] [-challenge string] [-pubkey]
11       [-spkac spkacname] [-spksect section] [-noout] [-verify] [-engine id]
12

DESCRIPTION

14       The spkac command processes Netscape signed public key and challenge
15       (SPKAC) files. It can print out their contents, verify the signature
16       and produce its own SPKACs from a supplied private key.
17

OPTIONS

19       -help
20           Print out a usage message.
21
22       -in filename
23           This specifies the input filename to read from or standard input if
24           this option is not specified. Ignored if the -key option is used.
25
26       -out filename
27           Specifies the output filename to write to or standard output by
28           default.
29
30       -key keyfile
31           Create an SPKAC file using the private key in keyfile. The -in,
32           -noout, -spksect and -verify options are ignored if present.
33
34       -keyform PEM|DER|ENGINE
35           Whether the key format is PEM, DER, or an engine-backed key.  The
36           default is PEM.
37
38       -passin password
39           The input file password source. For more information about the
40           format of arg see "Pass Phrase Options" in openssl(1).
41
42       -challenge string
43           Specifies the challenge string if an SPKAC is being created.
44
45       -spkac spkacname
46           Allows an alternative name form the variable containing the SPKAC.
47           The default is "SPKAC". This option affects both generated and
48           input SPKAC files.
49
50       -spksect section
51           Allows an alternative name form the section containing the SPKAC.
52           The default is the default section.
53
54       -noout
55           Don't output the text version of the SPKAC (not used if an SPKAC is
56           being created).
57
58       -pubkey
59           Output the public key of an SPKAC (not used if an SPKAC is being
60           created).
61
62       -verify
63           Verifies the digital signature on the supplied SPKAC.
64
65       -engine id
66           Specifying an engine (by its unique id string) will cause spkac to
67           attempt to obtain a functional reference to the specified engine,
68           thus initialising it if needed. The engine will then be set as the
69           default for all available algorithms.
70

EXAMPLES

72       Print out the contents of an SPKAC:
73
74        openssl spkac -in spkac.cnf
75
76       Verify the signature of an SPKAC:
77
78        openssl spkac -in spkac.cnf -noout -verify
79
80       Create an SPKAC using the challenge string "hello":
81
82        openssl spkac -key key.pem -challenge hello -out spkac.cnf
83
84       Example of an SPKAC, (long lines split up for clarity):
85
86        SPKAC=MIG5MGUwXDANBgkqhkiG9w0BAQEFAANLADBIAkEA\
87        1cCoq2Wa3Ixs47uI7FPVwHVIPDx5yso105Y6zpozam135a\
88        8R0CpoRvkkigIyXfcCjiVi5oWk+6FfPaD03uPFoQIDAQAB\
89        FgVoZWxsbzANBgkqhkiG9w0BAQQFAANBAFpQtY/FojdwkJ\
90        h1bEIYuc2EeM2KHTWPEepWYeawvHD0gQ3DngSC75YCWnnD\
91        dq+NQ3F+X4deMx9AaEglZtULwV4=
92

NOTES

94       A created SPKAC with suitable DN components appended can be fed into
95       the ca utility.
96
97       SPKACs are typically generated by Netscape when a form is submitted
98       containing the KEYGEN tag as part of the certificate enrollment
99       process.
100
101       The challenge string permits a primitive form of proof of possession of
102       private key. By checking the SPKAC signature and a random challenge
103       string some guarantee is given that the user knows the private key
104       corresponding to the public key being certified. This is important in
105       some applications. Without this it is possible for a previous SPKAC to
106       be used in a "replay attack".
107

SEE ALSO

109       ca(1)
110
112       Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
113
114       Licensed under the OpenSSL license (the "License").  You may not use
115       this file except in compliance with the License.  You can obtain a copy
116       in the file LICENSE in the source distribution or at
117       <https://www.openssl.org/source/license.html>.
118
119
120
1211.1.1k                            2021-03-26                          SPKAC(1)
Impressum