You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

genkey.html 4.0 KiB

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