Skip to content

Commit

Permalink
add a simple example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Jan 15, 2014
1 parent a6e58ff commit 2a212ec
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,33 @@

very simple puppet module to create an NSS database and add a certificate
and key via PEM files.

## Example of setting up 389 ds certs

```
nssdb::create { '/etc/dirsrv/slapd-ldap1':
owner_id => 'nobody',
group_id => 'nobody',
mode => '0660',
password => 'example',
manage_certdir => false,
}
nssdb::add_cert_and_key{ '/etc/dirsrv/slapd-ldap1':
nickname => 'Server-Cert',
cert => '/tmp/foo.pem',
key => '/tmp/foo.key',
}
nssdb::add_cert { 'AlphaSSL CA':
certdir => '/etc/dirsrv/slapd-ldap1',
nickname => 'AlphaSSL CA',
cert => '/tmp/alphassl_intermediate.pem',
}
nssdb::add_cert { 'GlobalSign Root CA':
certdir => '/etc/dirsrv/slapd-ldap1',
nickname => 'GlobalSign Root CA',
cert => '/tmp/globalsign_root.pem',
}
```

0 comments on commit 2a212ec

Please sign in to comment.