Revert "Revert "and added files""
[bcm963xx.git] / userapps / broadcom / cfm / html / certcaimport.html
1 <html>
2   <head>
3     <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
4     <link rel="stylesheet" href='stylemain.css' type='text/css'>
5       <link rel="stylesheet" href='colors.css' type='text/css'>
6         <script language="javascript" src="util.js"></script>
7         <script language="javascript">
8 <!-- hide
9
10 var certstart = '-----BEGIN CERTIFICATE-----';
11 var certinsert = '\n<insert certificate here>\n';
12 var certend = '-----END CERTIFICATE-----';
13
14 function frmLoad() {
15   document.importForm.action = 'certca.cmd?action=import';
16   with ( document.forms[0] ) {
17     certPublic.value = certstart + certinsert + certend + '\n';
18   }
19 }
20
21 function applyClick() {
22   var idx;
23  
24   with ( document.forms[0] ) {
25     if ( certName.value == '' ) {
26       alert('Certificate Name should not be empty.');
27       return;
28     }
29     if ( certPublic.value == '' ) {
30       alert('Certificate Public Key should not be empty.');
31       return;
32     }
33   }
34   document.importForm.submit();
35 }
36 // done hiding -->
37 </script>
38   </head>
39   <body onLoad='frmLoad()'>
40     <blockquote>
41       <form name="importForm" method="post">
42         <b>Import CA certificate<br>
43         </b>
44         <br>
45         Enter certificate name and paste certificate content.<br>
46         <br>
47         <table border="0" cellpadding="0" cellspacing="0">
48           <tr>
49             <td width="180">Certificate Name:</td>
50             <td><input type='text' name='certName' size='20' maxlength="63"></td>
51           </tr>
52             <tr>
53               <td width="180">Certificate:</td>
54               <td>
55                 <P>
56                   <TEXTAREA name='certPublic' rows='20' cols='80'>
57               </TEXTAREA>
58                 </P>
59               </td>
60             </tr>
61           </table>
62         </div>
63         <br>
64         <br>
65         <br>
66         <center>
67           <input type='button' value='Apply' onclick="applyClick()">
68         </center>
69       </form>
70     </blockquote>
71   </body>
72 </html>