You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@mad.scientist.com on 2000/07/13 02:35:13 UTC
Execute Perms
Hi,
would it be possible to remove execute permission from
bootstrap.bat and add it to bootstrap.sh in cvs ? The reason
is that execute permission not required on dos systems but
is required on *nix systems. Unfortunately this requires
having access to cvs on filesystem :<
--
Cheers,
Pete
*--------------------------------------------------*
| Latrobe University, | |
| Bundoora, Australia | Does the name 'Pavlov' |
| Office: PW220 | ring a bell ? |
| Ex: 2503 | |
*--------------------------------------------------*
GenerateKey Task
Posted by do...@mad.scientist.com.
Hi,
I just cleaned up the generate key task and it may ?? be
usefult to include in cvs. It can be a huge security hole if
not used properly. Anyway diffs and file follows
Cheers,
Pete
*--------------------------------------------------*
| Latrobe University, | |
| Bundoora, Australia | Does the name 'Pavlov' |
| Office: PW220 | ring a bell ? |
| Ex: 2503 | |
*--------------------------------------------------*
Index: docs/index.html
===================================================================
RCS file: /home/cvspublic/jakarta-ant/docs/index.html,v
retrieving revision 1.46
diff -r1.46 index.html
527a528
> <li><a href="#genkey">GenKey</a></li>
1354a1356,1445
>
> <hr>
> <h2><a name="genkey">GenKey</a></h2>
> <h3>Description</h3>
> <p>Generates a key in 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.</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 , are replace
> <p>The following two examples are identical: </p>
>
> <h3>Examples</h3>
> <blockquote>
> <p><code><genkey alias="apache-group" storepass="secret"
> dname="CN=Ant Group, OU=Jakarta Division, O=Apache.org, C=US" /></code></p>
> </blockquote>
>
> <blockquote>
> <pre><code><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></code></pre>
> </blockquote>
>
Index: src/main/org/apache/tools/ant/taskdefs/defaults.properties
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/defaults.properties,v
retrieving revision 1.20
diff -r1.20 defaults.properties
37a38
> genkey=org.apache.tools.ant.taskdefs.GenerateKey