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 3.5 KiB

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