PageRenderTime 32ms CodeModel.GetById 15ms app.highlight 12ms RepoModel.GetById 1ms app.codeStats 1ms

/security/nss/cmd/certcgi/ca_form.html

http://github.com/zpao/v8monkey
HTML | 388 lines | 335 code | 18 blank | 35 comment | 0 complexity | a61ffc4d2820e9396b9cccd597de9ee3 MD5 | raw file
  1<html>
  2<!-- ***** BEGIN LICENSE BLOCK *****
  3   - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4   -
  5   - The contents of this file are subject to the Mozilla Public License Version
  6   - 1.1 (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.mozilla.org/MPL/
  9   -
 10   - Software distributed under the License is distributed on an "AS IS" basis,
 11   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 12   - for the specific language governing rights and limitations under the
 13   - License.
 14   -
 15   - The Original Code is the Netscape security libraries.
 16   -
 17   - The Initial Developer of the Original Code is
 18   - Netscape Communications Corporation.
 19   - Portions created by the Initial Developer are Copyright (C) 1994-2000
 20   - the Initial Developer. All Rights Reserved.
 21   -
 22   - Contributor(s):
 23   -
 24   - Alternatively, the contents of this file may be used under the terms of
 25   - either the GNU General Public License Version 2 or later (the "GPL"), or
 26   - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 27   - in which case the provisions of the GPL or the LGPL are applicable instead
 28   - of those above. If you wish to allow use of your version of this file only
 29   - under the terms of either the GPL or the LGPL, and not to allow others to
 30   - use your version of this file under the terms of the MPL, indicate your
 31   - decision by deleting the provisions above and replace them with the notice
 32   - and other provisions required by the GPL or the LGPL. If you do not delete
 33   - the provisions above, a recipient may use your version of this file under
 34   - the terms of any one of the MPL, the GPL or the LGPL.
 35   -
 36   - ***** END LICENSE BLOCK ***** -->
 37    <form method="post" name="primary_form" action="http://interzone.mcom.com/burp.cgi">
 38    <table border=0 cellspacing=10 cellpadding=0>
 39    <tr>
 40    <td>
 41    Common Name:</td><td> <input type="text" name="name" onChange="{window.top.reset_subject('CN=', value, form)}"></p>
 42    </td>
 43    <td></td><td></td><td>
 44    Mail: </td><td><input type="text" name="email" onChange="var temp;{if (email_type[0].checked) {temp = 'MAIL='} else {temp = 'E='}} ;{window.top.reset_subject(temp, value, form)}"></p>
 45    RFC 1274<input type="radio" name="email_type" value="1" onClick="window.top.switch_mail(form)">
 46    e-mail<input type="radio" name="email_type" value="2" checked onClick="window.top.switch_mail(form)"></td>
 47    <tr>
 48    <td>
 49    Organization: </td><td>  <input type="text" name="org" onChange="{window.top.reset_subject('O=', value, form)}"></p></td>
 50    <td></td><td></td><td>
 51    Organizational Unit: </td><td><input type="text" name="org_unit" onChange="{window.top.reset_subject('OU=', value, form)}"></p></td>
 52    <tr>
 53    <td>
 54    RFC 1274 UID: </td><td><input type="text" name="uid" onChange="{window.top.reset_subject('UID=', value, form)}"></p></td>
 55    <td></td><td></td><td>
 56    Locality: </td><td><input type="text" name="loc" onChange="{window.top.reset_subject('L=', value, form)}"></p></td>
 57    <tr>
 58    <td>
 59    State or Province: </td><td><input type="text" name="state" onChange="{window.top.reset_subject('ST=', value, form)}"></p></td>
 60    <td></td><td></td><td>
 61    Country: </td><td><input type="text" size="2" maxsize="2" name="country" onChange="{window.top.reset_subject('C=', value, form)}"></p></td>
 62    </table>
 63    <table border=0 cellspacing=10 cellpadding=0>
 64    <tr>
 65    <td>
 66    Serial Number:</p>
 67    <DD>
 68    <input type="radio" name="serial" value="auto" checked> Auto Generate</P>
 69    <DD>
 70    <input type="radio" name="serial" value="input">
 71    Use this value: <input type="text" name="serial_value" size="8" maxlength="8"></p>
 72    </td>
 73    <td></td><td></td><td></td><td></td>
 74    <td>
 75    X.509 version:</p>
 76    <DD>
 77    <input type="radio" name="ver" value="1" checked> Version 1</p>
 78    <DD>
 79    <input type="radio" name="ver" value="3"> Version 3</P></td>
 80    <td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
 81    <td>
 82    Key Type:</p>
 83    <DD>
 84    <input type="radio" name="keyType" value="rsa" checked> RSA</p>
 85    <DD>
 86    <input type="radio" name="keyType" value="dsa"> DSA</P></td>
 87    </table>
 88    DN: <input type="text" name="subject" size="70" onChange="{window.top.reset_subjectFields(form)}"></P>
 89    <Select name="keysize">
 90        <option>1024 (High Grade)
 91        <option>768 (Medium Grade)
 92        <option>512 (Low Grade)
 93    </select> 
 94    </p>
 95  <hr>
 96    </p>
 97    <table  border=1 cellspacing=5 cellpadding=5>
 98    <tr>
 99    <td>
100    <b>Netscape Certificate Type: </b></p>
101    Activate extension: <input type="checkbox" name="netscape-cert-type"></P>
102    Critical: <input type="checkbox" name="netscape-cert-type-crit">
103    <td>
104    <input type="checkbox" name="netscape-cert-type-ssl-client"> SSL Client</P>
105    <input type="checkbox" name="netscape-cert-type-ssl-server"> SSL Server</P>
106    <input type="checkbox" name="netscape-cert-type-smime"> S/MIME</P>
107    <input type="checkbox" name="netscape-cert-type-object-signing"> Object Signing</P>    
108    <input type="checkbox" name="netscape-cert-type-reserved"> Reserved for future use (bit 4)</P>
109    <input type="checkbox" name="netscape-cert-type-ssl-ca"> SSL CA</P>
110    <input type="checkbox" name="netscape-cert-type-smime-ca"> S/MIME CA</P>
111    <input type="checkbox" name="netscape-cert-type-object-signing-ca"> Object Signing CA</P>
112    </tr>
113    <tr>
114    <td>
115    <b>Netscape Base URL:</b></p>
116    Activate extension: <input type="checkbox" name="netscape-base-url"></P>
117    Critical: <input type="checkbox" name="netscape-base-url-crit">
118    <td>
119    <input type="text" name="netscape-base-url-text" size="50">
120    </tr>
121    <tr>
122    <td>
123    <b>Netscape Revocation URL:</b></p>
124    Activate extension: <input type="checkbox" name="netscape-revocation-url"></P>
125    Critical: <input type="checkbox" name="netscape-revocation-url-crit">
126    <td>
127    <input type="text" name="netscape-revocation-url-text" size="50">
128    </tr>
129    <tr>
130    <td>    
131    <b>Netscape CA Revocation URL:</b></p>
132    Activate extension: <input type="checkbox" name="netscape-ca-revocation-url"></P>
133    Critical: <input type="checkbox" name="netscape-ca-revocation-url-crit">
134    <td>
135    <input type="text" name="netscape-ca-revocation-url-text" size="50">
136    </tr>
137    <tr>
138    <td>    
139    <b>Netscape Certificate Renewal URL:</b></p>
140    Activate extension: <input type="checkbox" name="netscape-cert-renewal-url"></P>
141    Critical: <input type="checkbox" name="netscape-cert-renewal-url-crit">
142    <td>
143    <input type="text" name="netscape-cert-renewal-url-text" size="50">
144    </tr>
145    <tr>
146    <td>
147    <b>Netscape CA Policy URL:</b></p>
148    Activate extension: <input type="checkbox" name="netscape-ca-policy-url"></P>
149    Critical: <input type="checkbox" name="netscape-ca-policy-url-crit">
150    <td>
151    <input type="text" name="netscape-ca-policy-url-text" size="50">
152    </tr>
153    <tr>
154    <td>
155    <b>Netscape SSL Server Name:</b></p>
156    Activate extension: <input type="checkbox" name="netscape-ssl-server-name"></P>
157    Critical: <input type="checkbox" name="netscape-ssl-server-name-crit">
158    <td>
159    <input type="text" name="netscape-ssl-server-name-text" size="50">
160    </tr>
161    <tr>
162    <td>
163    <b>Netscape Comment:</b></p>
164    Activate extension: <input type="checkbox" name="netscape-comment"></P>
165    Critical: <input type="checkbox" name="netscape-comment-crit">
166    <td>
167    <textarea name="netscape-comment-text" rows="5" cols="50"></textarea>
168    </tr>
169    </table>
170    </p>
171  <hr>
172    </p>
173    <table  border=1 cellspacing=5 cellpadding=5>
174    <form method="post" name="primary_form" action="http://interzone.mcom.com/burp.cgi">
175    <tr>
176    <td>
177    <b>Key Usage: </b></p>
178    Activate extension: <input type="checkbox" name="keyUsage"></P>
179    Critical: <input type="checkbox" name="keyUsage-crit">
180    <td>
181    <input type="checkbox" name="keyUsage-digitalSignature"> Digital Signature</P>
182    <input type="checkbox" name="keyUsage-nonRepudiation"> Non Repudiation</P>    
183    <input type="checkbox" name="keyUsage-keyEncipherment"> Key Encipherment</P>    
184    <input type="checkbox" name="keyUsage-dataEncipherment"> Data Encipherment</P>
185    <input type="checkbox" name="keyUsage-keyAgreement"> Key Agreement</P>
186    <input type="checkbox" name="keyUsage-keyCertSign"> Key Certificate Signing</P>
187    <input type="checkbox" name="keyUsage-cRLSign"> CRL Signing</P>
188    </tr>
189    <tr>
190    <td>
191    <b>Extended Key Usage: </b></p>
192    Activate extension: <input type="checkbox" name="extKeyUsage"></P>
193    Critical: <input type="checkbox" name="extKeyUsage-crit">
194    <td>
195    <input type="checkbox" name="extKeyUsage-serverAuth"> Server Auth</P>
196    <input type="checkbox" name="extKeyUsage-clientAuth"> Client Auth</P>
197    <input type="checkbox" name="extKeyUsage-codeSign"> Code Signing</P>
198    <input type="checkbox" name="extKeyUsage-emailProtect"> Email Protection</P>
199    <input type="checkbox" name="extKeyUsage-timeStamp"> Timestamp</P>
200    <input type="checkbox" name="extKeyUsage-ocspResponder"> OCSP Responder</P>
201    <input type="checkbox" name="extKeyUsage-NS-govtApproved"> Step-up</P>
202    </tr>
203    <tr>
204    <td>
205    <b>Basic Constraints:</b></p>
206    Activate extension: <input type="checkbox" name="basicConstraints"></P>
207    Critical: <input type="checkbox" name="basicConstraints-crit">
208    <td>
209    CA:</p>
210    <dd><input type=radio name="basicConstraints-cA-radio" value="CA"> True</p>
211    <dd><input type=radio name="basicConstraints-cA-radio" value="NotCA"> False</p>
212    <input type="checkbox" name="basicConstraints-pathLengthConstraint">
213     Include Path length:  <input type="text" name="basicConstraints-pathLengthConstraint-text" size="2"></p>
214    </tr>
215    <tr>
216    <td>
217    <b>Authority Key Identifier:</b></p>
218    Activate extension: <input type="checkbox" name="authorityKeyIdentifier">
219    <td>
220    <input type="radio" name="authorityKeyIdentifier-radio" value="keyIdentifier"> Key Identider</p>
221    <input type="radio" name="authorityKeyIdentifier-radio" value="authorityCertIssuer"> Issuer Name and Serial number</p>
222    </tr>
223    <tr>
224    <td>    
225    <b>Subject Key Identifier:</b></p>
226    Activate extension: <input type="checkbox" name="subjectKeyIdentifier">
227    <td>
228    Key Identifier: 
229    <input type="text" name="subjectKeyIdentifier-text"></p>
230    This is an:<p>
231    <dd><dd><input type="radio" name="subjectKeyIdentifier-radio" value="ascii"> ascii text value<p>
232    <dd><dd><input type="radio" name="subjectKeyIdentifier-radio" value="hex"> hex value<p>
233    </tr>
234    <tr>
235    <td>    
236    <b>Private Key Usage Period:</b></p>
237    Activate extension: <input type="checkbox" name="privKeyUsagePeriod"></p>
238    Critical: <input type="checkbox" name="privKeyUsagePeriod-crit">
239    <td>
240    Use:</p>
241    <dd><input type="radio" name="privKeyUsagePeriod-radio" value="notBefore"> Not Before</p>
242    <dd><input type="radio" name="privKeyUsagePeriod-radio" value="notAfter"> Not After</p>
243    <dd><input type="radio" name="privKeyUsagePeriod-radio" value="both" > Both</p>
244    <b>Not to be used to sign before:</b></p>
245    <dd><input type="radio" name="privKeyUsagePeriod-notBefore-radio" value="auto"> Set to time of certificate issue</p>
246    <dd><input type="radio" name="privKeyUsagePeriod-notBefore-radio" value="manual"> Use This value</p>
247    <dd><dd>(YYYY/MM/DD HH:MM:SS): 
248    <input type="text" name="privKeyUsagePeriod-notBefore-year" size="4" maxlength="4">/
249    <input type="text" name="privKeyUsagePeriod-notBefore-month" size="2" maxlength="2">/
250    <input type="text" name="privKeyUsagePeriod-notBefore-day" size="2" maxlength="2"> 
251    <input type="text" name="privKeyUsagePeriod-notBefore-hour" size="2" maxlength="2">:
252    <input type="text" name="privKeyUsagePeriod-notBefore-minute" size="2" maxlength="2">:
253    <input type="text" name="privKeyUsagePeriod-notBefore-second" size="2" maxlength="2"></p>
254    <b>Not to be used to sign after:</b></p>
255    <dd>(YYYY/MM/DD HH:MM:SS): 
256    <input type="text" name="privKeyUsagePeriod-notAfter-year" size="4" maxlength="4">/
257    <input type="text" name="privKeyUsagePeriod-notAfter-month" size="2" maxlength="2">/
258    <input type="text" name="privKeyUsagePeriod-notAfter-day" size="2" maxlength="2"> 
259    <input type="text" name="privKeyUsagePeriod-notAfter-hour" size="2" maxlength="2">:
260    <input type="text" name="privKeyUsagePeriod-notAfter-minute" size="2" maxlength="2">:
261    <input type="text" name="privKeyUsagePeriod-notAfter-second" size="2" maxlength="2"></p>
262    </tr>
263    <tr>
264    <td>
265    <b>Subject Alternative Name:</b></p>
266    Activate extension: <input type="checkbox" name="SubAltName"></P>
267    Critical: <input type="checkbox" name="SubAltName-crit">
268    <td>
269      <table>
270      <tr>
271      <td>
272      General Names:</p>
273      <select name="SubAltNameSelect" multiple size="10">
274      </select></p></p>
275      <input type="button" name="SubAltName-add" value="Add" onClick="{parent.addSubAltName(this.form)}">
276      <input type="button" name="SubAltName-delete" value="Delete" onClick="parent.deleteSubAltName(this.form)">
277      </td><td>
278        <table><tr><td>
279        Name Type: </td></tr><tr><td>
280        <input type="radio" name="SubAltNameRadio" value="otherName" onClick="parent.setSubAltNameType(form)"> Other Name, 
281        OID: <input type="text" name="SubAltNameOtherNameOID" size="6"> </td><td>
282        <input type="radio" name="SubAltNameRadio" value="rfc822Name" onClick="parent.setSubAltNameType(form)"> RFC 822 Name</td></tr><td>
283        <input type="radio" name="SubAltNameRadio" value="dnsName" onClick="parent.setSubAltNameType(form)"> DNS Name </td><td>
284        <input type="radio" name="SubAltNameRadio" value="x400" onClick="parent.setSubAltNameType(form)"> X400 Address</td></tr><td>
285        <input type="radio" name="SubAltNameRadio" value="directoryName" onClick="parent.setSubAltNameType(form)"> Directory Name</td><td>
286        <input type="radio" name="SubAltNameRadio" value="ediPartyName" onClick="parent.setSubAltNameType(form)"> EDI Party Name</td></tr><td>
287        <input type="radio" name="SubAltNameRadio" value="URL" onClick="parent.setSubAltNameType(form)"> Uniform Resource Locator</td><td>
288        <input type="radio" name="SubAltNameRadio" value="ipAddress" onClick="parent.setSubAltNameType(form)"> IP Address</td></tr><td>
289        <input type="radio" name="SubAltNameRadio" value="regID"onClick="parent.setSubAltNameType(form)"> Registered ID</td><td>
290	<input type="radio" name="SubAltNameRadio" value="nscpNickname" onClick="parent.setSubAltNameType(form)"> Netscape Certificate Nickname</td><td></tr>
291        </table>
292      Name: <input type="text" name="SubAltNameText">
293        Binary Encoded: <input type="checkbox" name="SubAltNameDataType" value="binary" onClick="parent.setSubAltNameType(form)"></p>
294      </tr>
295      </table>
296    </tr>
297
298
299    <tr>
300    <td>
301    <b>Issuer Alternative Name:</b></p>
302    Activate extension: <input type="checkbox" name="IssuerAltName"></P>
303    Critical: <input type="checkbox" name="IssuerAltName-crit">
304    <td>
305      <input type="radio" name="IssuerAltNameSourceRadio" value="auto"> Use the Subject Alternative Name from the Issuers Certificate</p>
306      <input type="radio" name="IssuerAltNameSourceRadio" value="man"> Use this Name:
307      <table>
308      <tr>
309      <td>
310      General Names:</p>
311      <select name="IssuerAltNameSelect" multiple size="10">
312      </select></p></p>
313      <input type="button" name="IssuerAltName-add" value="Add" onClick="{parent.addIssuerAltName(this.form)}">
314      <input type="button" name="IssuerAltName-delete" value="Delete" onClick="parent.deleteIssuerAltName(this.form)">
315      </td><td>
316        <table><tr><td>
317        Name Type: </td></tr><tr><td>
318        <input type="radio" name="IssuerAltNameRadio" value="otherName" onClick="parent.setIssuerAltNameType(form)"> Other Name, 
319        OID: <input type="text" name="IssuerAltNameOtherNameOID" size="6"> </td><td>
320        <input type="radio" name="IssuerAltNameRadio" value="rfc822Name" onClick="parent.setIssuerAltNameType(form)"> RFC 822 Name</td></tr><td>
321        <input type="radio" name="IssuerAltNameRadio" value="dnsName" onClick="parent.setIssuerAltNameType(form)"> DNS Name </td><td>
322        <input type="radio" name="IssuerAltNameRadio" value="x400" onClick="parent.setIssuerAltNameType(form)"> X400 Address</td></tr><td>
323        <input type="radio" name="IssuerAltNameRadio" value="directoryName" onClick="parent.setIssuerAltNameType(form)"> Directory Name</td><td>
324        <input type="radio" name="IssuerAltNameRadio" value="ediPartyName" onClick="parent.setIssuerAltNameType(form)"> EDI Party Name</td></tr><td>
325        <input type="radio" name="IssuerAltNameRadio" value="URL" onClick="parent.setIssuerAltNameType(form)"> Uniform Resource Locator</td><td>
326        <input type="radio" name="IssuerAltNameRadio" value="ipAddress" onClick="parent.setIssuerAltNameType(form)"> IP Address</td></tr><td>
327        <input type="radio" name="IssuerAltNameRadio" value="regID" onClick="parent.setIssuerAltNameType(form)"> Registered ID</td><td></tr>
328        </table>
329      Name: <input type="text" name="IssuerAltNameText"> 
330        Binary Encoded: <input type="checkbox" name="IssuerAltNameDataType" value="binary" onClick="parent.setIssuerAltNameType(form)"></p>
331      </tr>
332      </table>
333    </tr>
334
335    <tr>
336    <td>
337    <b>Name Constraints:</b></p>
338    Activate extension: <input type="checkbox" name="NameConstraints"></P>
339    <td>
340      <table>
341      <tr>
342      <td>
343      Name Constraints:</p>
344
345
346      <select name="NameConstraintSelect" multiple size="10">
347      </select></p></p>
348      <input type="button" name="NameConstraint-add" value="Add" onClick="{parent.addNameConstraint(this.form)}">
349      <input type="button" name="NameConstraint-delete" value="Delete" onClick="parent.deleteNameConstraint(this.form)">
350      </td><td>
351        <table><tr><td>
352        Name Type: </td></tr><tr><td>
353        <input type="radio" name="NameConstraintRadio" value="otherName" onClick="parent.setNameConstraintNameType(form)"> Other Name,
354        OID: <input type="text" name="NameConstraintOtherNameOID" size="6">  </td><td>
355        <input type="radio" name="NameConstraintRadio" value="rfc822Name" onClick="parent.setNameConstraintNameType(form)"> RFC 822 Name</td></tr><td>
356        <input type="radio" name="NameConstraintRadio" value="dnsName" onClick="parent.setNameConstraintNameType(form)"> DNS Name </td><td>
357        <input type="radio" name="NameConstraintRadio" value="x400" onClick="parent.setNameConstraintNameType(form)"> X400 Address</td></tr><td>
358        <input type="radio" name="NameConstraintRadio" value="directoryName" onClick="parent.setNameConstraintNameType(form)"> Directory Name</td><td>
359        <input type="radio" name="NameConstraintRadio" value="ediPartyName" onClick="parent.setNameConstraintNameType(form)"> EDI Party Name</td></tr><td>
360        <input type="radio" name="NameConstraintRadio" value="URL" onClick="parent.setNameConstraintNameType(form)"> Uniform Resource Locator</td><td>
361        <input type="radio" name="NameConstraintRadio" value="ipAddress" onClick="parent.setNameConstraintNameType(form)"> IP Address</td></tr><td>
362        <input type="radio" name="NameConstraintRadio" value="regID" onClick="parent.setNameConstraintNameType(form)"> Registered ID</td><td></tr>
363        </table>
364      Name: <input type="text" name="NameConstraintText">
365        Binary Encoded: <input type="checkbox" name="NameConstraintNameDataType" value="binary" onClick="parent.setNameConstraintNameType(form)"></p>
366      Constraint type:<p>
367      <dd><input type="radio" name="NameConstraintTypeRadio" value="permited"> permited<p>
368      <dd><input type="radio" name="NameConstraintTypeRadio" value="excluded"> excluded<p>
369      Minimum: <input type="text" name="NameConstraintMin" size="8" maxlength="8"></p>
370      Maximum: <input type="text" name="NameConstraintMax" size="8" maxlength="8"></p>
371
372
373
374      </tr>
375      </table>
376    </tr>
377    </table>
378    </form>
379
380
381
382
383
384
385
386
387
388