2003-08-19 06:44:58 +00:00
|
|
|
<?
|
|
|
|
require_once("docutil.php");
|
|
|
|
page_head("Creating encryption keys");
|
|
|
|
echo "
|
2002-09-10 17:04:05 +00:00
|
|
|
<h2>Creating encryption keys</h2>
|
|
|
|
|
2002-10-24 08:25:42 +00:00
|
|
|
|
2002-09-20 21:17:47 +00:00
|
|
|
The following commands generate the file upload and code signing key pairs.
|
2004-03-02 03:46:04 +00:00
|
|
|
BOINC_KEY_DIR is the directory where the keys will be stored.
|
2002-09-20 21:17:47 +00:00
|
|
|
The code signing private key should be stored only on
|
|
|
|
a highly secure (e.g., a disconnected, physically secure) host.
|
|
|
|
<pre>
|
|
|
|
crypt_prog -genkey 1024 BOINC_KEY_DIR/upload_private BOINC_KEY_DIR/upload_public
|
|
|
|
crypt_prog -genkey 1024 BOINC_KEY_DIR/code_sign_private BOINC_KEY_DIR/code_sign_public
|
2002-10-24 08:25:42 +00:00
|
|
|
</pre>
|
2003-05-10 00:52:36 +00:00
|
|
|
Or, in the test/ directory, run
|
|
|
|
<pre>
|
|
|
|
gen_keys.php
|
|
|
|
</pre>
|
2002-10-24 08:25:42 +00:00
|
|
|
|
|
|
|
<p>
|
|
|
|
The program <b>lib/crypt_prog</b> can be used for several purposes:
|
|
|
|
<br>
|
|
|
|
<dl>
|
2004-03-21 00:10:15 +00:00
|
|
|
<dt>crypt_prog -genkey n private_keyfile public_keyfile
|
2002-10-24 08:25:42 +00:00
|
|
|
<dd>
|
|
|
|
Create a key pair with n bits (always use 1024).
|
|
|
|
Write the keys in encoded ASCII form to the indicated files.
|
2004-03-21 00:10:15 +00:00
|
|
|
<dt>crypt_prog -sign file private_keyfile
|
2002-10-24 08:25:42 +00:00
|
|
|
<dd>
|
|
|
|
Create a digital signature for the given file. Write it in encoded
|
|
|
|
ASCII to stdout.
|
2004-03-21 00:10:15 +00:00
|
|
|
<dt>crypt_prog -verify file signature_file public_keyfile
|
2002-10-24 08:25:42 +00:00
|
|
|
<dd>
|
|
|
|
Verify a signature for the given file.
|
2004-03-21 00:10:15 +00:00
|
|
|
<dt>crypt_prog -test_crypt private_keyfile public_keyfile
|
2002-10-24 08:25:42 +00:00
|
|
|
<dd>
|
|
|
|
Perform an internal test, checking that encryption followed by
|
|
|
|
decryption works.
|
|
|
|
</dl>
|
2003-08-19 06:44:58 +00:00
|
|
|
";
|
|
|
|
page_tail();
|
|
|
|
?>
|