blob: 96959c2ff376ea8e05961113668388ec4eb4375a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
<title>GenKey Task</title>
</head>
<body>
<h2><a name="genkey">GenKey</a></h2>
<h3>Description</h3>
<p>Generates a key in a keystore. </p>
<h3>Parameters</h3>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td valign="top"><b>Attribute</b></td>
<td valign="top"><b>Description</b></td>
<td align="center" valign="top"><b>Required</b></td>
</tr>
<tr>
<td valign="top">alias</td>
<td valign="top">the alias to add under</td>
<td valign="top" align="center">Yes.</td>
</tr>
<tr>
<td valign="top">storepass</td>
<td valign="top">password for keystore integrity. Must
be at least 6 characters long</td>
<td valign="top" align="center">Yes.</td>
</tr>
<tr>
<td valign="top">keystore</td>
<td valign="top">keystore location</td>
<td valign="top" align="center">No</td>
</tr>
<tr>
<td valign="top">storetype</td>
<td valign="top">keystore type</td>
<td valign="top" align="center">No</td>
</tr>
<tr>
<td valign="top">keypass</td>
<td valign="top">password for private key (if different)</td>
<td valign="top" align="center">No</td>
</tr>
<tr>
<td valign="top">sigalg</td>
<td valign="top">the algorithm to use in signing</td>
<td valign="top" align="center">No</td>
</tr>
<tr>
<td valign="top">keyalg</td>
<td valign="top">the method to use when generating name-value pair</td>
<td valign="top" align="center">No</td>
</tr>
<tr>
<td valign="top">verbose</td>
<td valign="top">(true | false) verbose output when signing</td>
<td valign="top" align="center">No</td>
</tr>
<tr>
<td valign="top">dname</td>
<td valign="top">The distinguished name for entity</td>
<td valign="top" align="center">Yes if dname element unspecified</td>
</tr>
<tr>
<td valign="top">validity</td>
<td valign="top">(integer) indicates how many days certificate is valid</td>
<td valign="top" align="center">No</td>
</tr>
<tr>
<td valign="top">keysize</td>
<td valign="top">(integer) indicates the size of key generated</td>
<td valign="top" align="center">No</td>
</tr>
</table>
<p>Alternatively you can specify the distinguished name by creating a
sub-element named dname and populating it with param elements that
have a name and a value. When using the subelement it is automatically
encoded properly and commas ("<code>,</code>") are replaced
with "<code>\,</code>".</p>
<p>The following two examples are identical: </p>
<h3>Examples</h3>
<blockquote><pre>
<genkey alias="apache-group" storepass="secret"
dname="CN=Ant Group, OU=Jakarta Division, O=Apache.org, C=US"/>
</pre></blockquote>
<blockquote>
<pre>
<genkey alias="apache-group" storepass="secret" >
<dname>
<param name="CN" value="Ant Group"/>
<param name="OU" value="Jakarta Division"/>
<param name="O" value="Apache.Org"/>
<param name="C" value="US"/>
</dname>
</genkey></pre>
</blockquote>
</body>
</html>
|