From 419168c11cb4cffb8c3512c1b9318363073d8329 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 9 Aug 2016 19:05:04 -0600 Subject: [PATCH] note subject, altnames --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 99a88bb..1125f5a 100644 --- a/README.md +++ b/README.md @@ -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 } ```