--- /dev/null
+<html>
+ <head>
+ <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
+ <link rel="stylesheet" href='stylemain.css' type='text/css'>
+ <link rel="stylesheet" href='colors.css' type='text/css'>
+ <script language="javascript" src="util.js"></script>
+ <script language="javascript">
+<!-- hide
+
+var keystart = '-----BEGIN RSA PRIVATE KEY-----';
+var keyinsert = '\n<insert private key here>\n';
+var keyend = '-----END RSA PRIVATE KEY-----';
+var certstart = '-----BEGIN CERTIFICATE-----';
+var certinsert = '\n<insert certificate here>\n';
+var certend = '-----END CERTIFICATE-----';
+
+function frmLoad() {
+ document.importForm.action = 'certlocal.cmd?action=import';
+ with ( document.forms[0] ) {
+ certPrivate.value = keystart + keyinsert + keyend + '\n';
+ certPublic.value = certstart + certinsert + certend + '\n';
+ }
+}
+
+function applyClick() {
+ var idx;
+
+ with ( document.forms[0] ) {
+ if ( certName.value == '' ) {
+ alert('Certificate Name should not be empty.');
+ return;
+ }
+ if ( certPrivate.value == '' ) {
+ alert('Certificate Private Key should not be empty.');
+ return;
+ }
+ if ( certPublic.value == '' ) {
+ alert('Certificate Public Key should not be empty.');
+ return;
+ }
+ }
+ document.importForm.submit();
+}
+// done hiding -->
+</script>
+ </head>
+ <body onLoad='frmLoad()'>
+ <blockquote>
+ <form name="importForm" method="post">
+ <b>Import certificate<br>
+ </b>
+ <br>
+ Enter certificate name, paste certificate content and private key.<br>
+ <br>
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td width="180">Certificate Name:</td>
+ <td><input type='text' name='certName' size='20' maxlength="63"></td>
+ </tr>
+ <tr>
+ <td width="180">Certificate:</td>
+ <td>
+ <P>
+ <TEXTAREA name='certPublic' rows='20' cols='80'>
+ </TEXTAREA>
+ </P>
+ </td>
+ </tr>
+ <tr>
+ <td width="180">Private Key:</td>
+ <td>
+ <P>
+ <TEXTAREA name='certPrivate' rows='20' cols='80'>
+ </TEXTAREA>
+ </P>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <br>
+ <br>
+ <br>
+ <center>
+ <input type='button' value='Apply' onclick="applyClick()">
+ </center>
+ </form>
+ </blockquote>
+ </body>
+</html>