Skip to content

prodrigestivill/phpkrm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPkrm

PHPkrm is a PHP web-based GnuPG (GPG, PGP) keyring manager.

It lets anonymous visitors add their own public keys and download all keyrings, and allows synchronization with external servers to refresh the keys and/or upload the keys.

screenshot

Usage

  • http://localhost/PATH/ List all keyrings
  • http://localhost/PATH/?q=KEYRING/KEYID Download the key in ASCII mode
  • http://localhost/PATH/?q=KEYRING/download Download all the keyring in ASCII mode
  • http://localhost/PATH/?q=KEYRING/print Full list of all keys in KEYRING in text mode
  • http://localhost/PATH/?q=KEYRING/refresh Synchronize with keyserver to refresh keys UID's and optionaly send all keys to it

Install

  • Descompress in a empty web folder
  • Configure config.php
  • For Rewrite:
    • Configure $basehref at config.php
    • Configure RewriteBase at .htaccess
  • Create the keyrings folder ($dbpath) with permissions of www user
  • Create empty files in the previous folder with the name of keyrings
    • The keyring name must be only alphanumeric and/or the characters -_
    • Files must be owned by www user
  • Add to crontab wget http://localhost/PATH/?q=KEYRING/refresh to sync with the keyserver to refresh keys UID's and optionaly send all keys to it

Requieres

Customizations

  • The headers can be customized by creating in the keyrings folder ($dbpath) the files named as the keyring name but ending with .php or .txt for html or print version respectively.
  • The headers of the main page with keyrings list can be customized by creating a file named list.php in the same folder as index.php.
  • Using reCAPTCHA (Anti-SPAM method)
    • Download and save recaptchalib.php in the same folder as index.php.
    • Configure $recaptcha_* variables with the reCAPTCHA mail keys and form keys.