1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 (c) 2006 U.S. Robotics Corporation
7 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8 <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
9 <title>Import Certificate</title>
10 <link href="usr_menus_dropdown.css" rel="stylesheet" type="text/css">
11 <script src="usr_menus_dropdown.js" type="text/javascript"></script>
12 <script src="usr_menus_build.js" type="text/javascript"></script>
13 <link href="usr_layout.css" type="text/css" rel="stylesheet" /><script src="usr_layout.js" type="text/javascript"></script>
14 <link href="usr_device.css" type="text/css" rel="stylesheet" /><script src="usr_device.js" type="text/javascript"></script><link href="usr_91xx.css" type="text/css" rel="stylesheet" /><script src="usr_91xx.js" type="text/javascript"></script><script src="usr_resources.js" type="text/javascript"></script>
16 <script type="text/javascript" src="util.js"></script>
17 <script type="text/javascript">
20 var keystart = '-----BEGIN RSA PRIVATE KEY-----';
21 var keyinsert = '\n<insert private key here>\n';
22 var keyend = '-----END RSA PRIVATE KEY-----';
23 var certstart = '-----BEGIN CERTIFICATE-----';
24 var certinsert = '\n<insert certificate here>\n';
25 var certend = '-----END CERTIFICATE-----';
28 document.importForm.action = 'certlocal.cmd?action=import';
29 with ( document.forms[0] ) {
30 certPrivate.value = keystart + keyinsert + keyend + '\n';
31 certPublic.value = certstart + certinsert + certend + '\n';
35 function applyClick() {
38 with ( document.forms[0] ) {
39 if ( certName.value == '' ) {
40 alert('Certificate Name should not be empty.');
43 if ( certPrivate.value == '' ) {
44 alert('Certificate Private Key should not be empty.');
47 if ( certPublic.value == '' ) {
48 alert('Certificate Public Key should not be empty.');
52 document.importForm.submit();
57 <body onLoad="initMenu(); frmLoad();">
59 <script type="text/javascript">
61 writeHeader("Import Certificate");
64 <h3>Import Certificate</h3>
66 <form name="importForm" method="post">
67 <p>Please enter the certificate name and its content and private key.</p>
69 <p><label for="certName">Certificate name:</label>
70 <input type='text' name='certName' size='20' maxlength="63"></p>
72 <p><label for="certPublic">Certificate:</label></p>
73 <p><TEXTAREA name='certPublic' rows='20' cols='80'></TEXTAREA></p>
75 <p><label for="certPrivate">Private key:</label></p>
76 <P><TEXTAREA name='certPrivate' rows='20' cols='80'></TEXTAREA></P>
78 <p><input type='button' value='Apply' onclick="applyClick()"></p>
81 <script type="text/javascript">