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">
10 var keystart = '-----BEGIN RSA PRIVATE KEY-----';
11 var keyinsert = '\n<insert private key here>\n';
12 var keyend = '-----END RSA PRIVATE KEY-----';
13 var certstart = '-----BEGIN CERTIFICATE-----';
14 var certinsert = '\n<insert certificate here>\n';
15 var certend = '-----END CERTIFICATE-----';
18 document.importForm.action = 'certlocal.cmd?action=import';
19 with ( document.forms[0] ) {
20 certPrivate.value = keystart + keyinsert + keyend + '\n';
21 certPublic.value = certstart + certinsert + certend + '\n';
25 function applyClick() {
28 with ( document.forms[0] ) {
29 if ( certName.value == '' ) {
30 alert('Certificate Name should not be empty.');
33 if ( certPrivate.value == '' ) {
34 alert('Certificate Private Key should not be empty.');
37 if ( certPublic.value == '' ) {
38 alert('Certificate Public Key should not be empty.');
42 document.importForm.submit();
47 <body onLoad='frmLoad()'>
49 <form name="importForm" method="post">
50 <b>Import certificate<br>
53 Enter certificate name, paste certificate content and private key.<br>
55 <table border="0" cellpadding="0" cellspacing="0">
57 <td width="180">Certificate Name:</td>
58 <td><input type='text' name='certName' size='20' maxlength="63"></td>
61 <td width="180">Certificate:</td>
64 <TEXTAREA name='certPublic' rows='20' cols='80'>
70 <td width="180">Private Key:</td>
73 <TEXTAREA name='certPrivate' rows='20' cols='80'>
84 <input type='button' value='Apply' onclick="applyClick()">