Update README
added HKP server functionality installation instructions
This commit is contained in:
parent
7f9baa4aa2
commit
3ddb512639
|
@ -23,7 +23,7 @@ Note that all processing relating to the mail server is done via the
|
||||||
be installed on a different server from the web server. The MySQL
|
be installed on a different server from the web server. The MySQL
|
||||||
database must be shared between the two applications though.
|
database must be shared between the two applications though.
|
||||||
|
|
||||||
Installation instructions:
|
1. Installation instructions:
|
||||||
|
|
||||||
1) Install gpg-mailgate.
|
1) Install gpg-mailgate.
|
||||||
2) Create a MySQL database for gpg-mailgate.
|
2) Create a MySQL database for gpg-mailgate.
|
||||||
|
@ -38,3 +38,32 @@ Installation instructions:
|
||||||
6) Ensure that cron is working and test your new gpg-mailgate-web installation!
|
6) Ensure that cron is working and test your new gpg-mailgate-web installation!
|
||||||
|
|
||||||
Any issues should be reported to https://github.com/uakfdotb/gpg-mailgate
|
Any issues should be reported to https://github.com/uakfdotb/gpg-mailgate
|
||||||
|
|
||||||
|
----------------------------------------
|
||||||
|
|
||||||
|
2. Adding rudimentary HKP Keyserver functionality for submitting public keys from the GPG client
|
||||||
|
|
||||||
|
(so far only implemented and tested with lighttpd - basically you just need to make your http server
|
||||||
|
listen on port 11371, redirect it to your gpg-mailgate-web directory and add a rewrite rule to catch
|
||||||
|
'pks/add' in the URI)
|
||||||
|
|
||||||
|
1) add the following lines to your lighttp.conf file and change the path to your gpg-mailgate-web directory
|
||||||
|
|
||||||
|
server.reject-expect-100-with-417 = "disable"
|
||||||
|
|
||||||
|
$SERVER["socket"] == ":11371" {
|
||||||
|
server.document-root = "/var/www/gpgmw"
|
||||||
|
setenv.add-response-header = ( "Via" => "1.1 mailflux.net:11371 (lighttpd)" )
|
||||||
|
accesslog.filename = "/var/log/lighttpd/hkp-access.log"
|
||||||
|
url.rewrite-once = ( "^/pks/(.*)" => "/index.php?/pks/$1" )
|
||||||
|
}
|
||||||
|
|
||||||
|
2) reload lighttpd: /etc/init.d/lighttpd restart
|
||||||
|
3) in the index.php add the following line after the other required_once(...) lines:
|
||||||
|
|
||||||
|
require_once("include/phphkp.php");
|
||||||
|
|
||||||
|
4) check if it works with a GPG client of your choice pushing a public key to your server's
|
||||||
|
domain or IP
|
||||||
|
|
||||||
|
(HTTP request to http://yourserver.tld:11371/pks/add with the public key in a POST variable 'keytext')
|
||||||
|
|
Loading…
Reference in New Issue