note subject, altnames

This commit is contained in:
AJ ONeal 2016-08-09 19:05:04 -06:00 committed by GitHub
parent 232f97cf05
commit 419168c11c
1 changed files with 7 additions and 3 deletions

View File

@ -61,11 +61,13 @@ of how to use this library:
```javascript
var le = require('letsencrypt').create({ server: 'staging' });
le.register({
var opts = {
domains: ['example.com'], email: 'user@email.com', agreeTos: true
}).then(function (certs) {
// privkey, cert, chain, expiresAt, issuedAt, subject, altnames
};
le.register(opts).then(function (certs) {
console.log(certs);
// privkey, cert, chain, expiresAt, issuedAt, subject, altnames
}, function (err) {
console.error(err);
});
@ -176,6 +178,8 @@ Here's what `results` looks like:
, chain: '' // PEM encoded intermediate cert
, issuedAt: 0 // notBefore date (in ms) parsed from cert
, expiresAt: 0 // notAfter date (in ms) parsed from cert
, subject: '' // example.com
, altnames: [] // example.com,www.example.com
}
```