fix non-promise example
This commit is contained in:
parent
db50cb8782
commit
1e2bf80b5d
11
README.md
11
README.md
|
@ -61,12 +61,11 @@ of how to use this library:
|
||||||
```javascript
|
```javascript
|
||||||
var le = require('letsencrypt').create({ server: 'staging' });
|
var le = require('letsencrypt').create({ server: 'staging' });
|
||||||
|
|
||||||
le.register(
|
le.register({ domains: ['example.com'], email: 'user@email.com', agreeTos: true }).then(function (results) {
|
||||||
{ domains: ['example.com'], email: 'user@email.com', agreeTos: true }
|
console.log(results);
|
||||||
, function (err, results) {
|
}, function (err) {
|
||||||
console.log(err, results);
|
console.error(err);
|
||||||
}
|
});
|
||||||
);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
You also need some sort of server to handle the acme challenge:
|
You also need some sort of server to handle the acme challenge:
|
||||||
|
|
Loading…
Reference in New Issue