lockr / lockr-client
Client for use with Lockr off-site key management service.
Installs: 9 021
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 2
Requires
README
Usage Overview
$cert_path = '/path/to/lockr/client/cert.pem'; $partner_name = 'lockr partner name'; $region = 'us'; // Partner is the authentication unit for Lockr. // $cert_path is the path to a PEM encoded x509 certificate // provided by Lockr. // $partner_name is the name of the partner to authenticate, // usually 'custom' for certificates provided directly by Lockr. // $region indicates where to store keys ('us' or 'eu') $partner = new \Lockr\Partner($cert_path, $partner_name, $region); $client = new \Lockr\Lockr($partner); // SiteClient provides operations on a site. $site_client = new \Lockr\SiteClient($client); $status = $site_client->exists(); // KeyClient provides operations for keys. $key_client = new \Lockr\KeyClient($client); $key_client->set('my_key', 'secret key value', 'My Key'); $key_value = $key_client->get('my_key');