Like MD_Init, MD now must include a NULL engine pointer in its definition.
[openssl.git] / doc / apps / spkac.pod
1 =pod
2
3 =head1 NAME
4
5 spkac - SPKAC printing and generating utility
6
7 =head1 SYNOPSIS
8
9 B<openssl> B<spkac>
10 [B<-in filename>]
11 [B<-out filename>]
12 [B<-key keyfile>]
13 [B<-passin arg>]
14 [B<-challenge string>]
15 [B<-pubkey>]
16 [B<-spkac spkacname>]
17 [B<-spksect section>]
18 [B<-noout>]
19 [B<-verify>]
20
21
22 =head1 DESCRIPTION
23
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.
27
28 =head1 COMMAND OPTIONS
29
30 =over 4
31
32 =item B<-in filename>
33
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.
36
37 =item B<-out filename>
38
39 specifies the output filename to write to or standard output by
40 default.
41
42 =item B<-key keyfile>
43
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
46 present.
47
48 =item B<-passin password>
49
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)>.
52
53 =item B<-challenge string>
54
55 specifies the challenge string if an SPKAC is being created.
56
57 =item B<-spkac spkacname>
58
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.
62
63 =item B<-spksect section>
64
65 allows an alternative name form the section containing the
66 SPKAC. The default is the default section.
67
68 =item B<-noout>
69
70 don't output the text version of the SPKAC (not used if an
71 SPKAC is being created).
72
73 =item B<-pubkey>
74
75 output the public key of an SPKAC (not used if an SPKAC is
76 being created).
77
78 =item B<-verify>
79
80 verifies the digital signature on the supplied SPKAC.
81
82
83 =back
84
85 =head1 EXAMPLES
86
87 Print out the contents of an SPKAC:
88
89  openssl spkac -in spkac.cnf
90
91 Verify the signature of an SPKAC:
92
93  openssl spkac -in spkac.cnf -noout -verify
94
95 Create an SPKAC using the challenge string "hello":
96
97  openssl spkac -key key.pem -challenge hello -out spkac.cnf
98
99 Example of an SPKAC, (long lines split up for clarity):
100
101  SPKAC=MIG5MGUwXDANBgkqhkiG9w0BAQEFAANLADBIAkEA1cCoq2Wa3Ixs47uI7F\
102  PVwHVIPDx5yso105Y6zpozam135a8R0CpoRvkkigIyXfcCjiVi5oWk+6FfPaD03u\
103  PFoQIDAQABFgVoZWxsbzANBgkqhkiG9w0BAQQFAANBAFpQtY/FojdwkJh1bEIYuc\
104  2EeM2KHTWPEepWYeawvHD0gQ3DngSC75YCWnnDdq+NQ3F+X4deMx9AaEglZtULwV\
105  4=
106
107 =head1 NOTES
108
109 A created SPKAC with suitable DN components appended can be fed into
110 the B<ca> utility.
111
112 SPKACs are typically generated by Netscape when a form is submitted
113 containing the B<KEYGEN> tag as part of the certificate enrollment
114 process.
115
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".
122
123 =head1 SEE ALSO
124
125 L<ca(1)|ca(1)>
126
127 =cut