Creates and distributes secrets based on client certificates
wget --ca-certificate=/etc/ssl/certs/host-ca.crt --certificate=/etc/ssl/certs/host.crt --private-key=/etc/ssl/private/host.key https://secrets.example.com/<module>
Modules can be added by placing an executable file in the modules folder. The executable will be called with the hostname of the client as the first argument. It should write the secret to stdout.
You need to enable the module in config.php after adding it to the modules folder.
Can be automatically installed using puppet: puppet-secret_server
- apt-get install apache2 git php5
- a2enmod rewrite ssl
- mkdir -p /opt/max/
- cd /opt/max && git clone https://github.com/thexa4/secrets-server secrets
- cd /opt/max/secrets
- chmod -R 750 data
- cp config.php.sample config.php
- configure a virtual host that optionally checks for client certificates and uses /opt/max/secrets/public as documentroot.