This commit is contained in:
AJ ONeal 2015-12-12 15:27:06 +00:00
parent 2091a17790
commit 78824cef87
2 changed files with 8 additions and 0 deletions

View File

@ -194,6 +194,12 @@ return {
};
```
See Also
========
* [Let's Encrypt in (exactly) 90 seconds with Caddy](https://daplie.com/articles/lets-encrypt-in-literally-90-seconds/)
* Let's Encrypt for golang [lego](https://github.com/xenolf/lego)
LICENSE
=======

View File

@ -14,6 +14,7 @@ module.exports.create = function (opts) {
opts.key = fs.readFileSync(path.join(opts.configDir, 'live', domainname, 'privkey.pem'));
opts.cert = fs.readFileSync(path.join(opts.configDir, 'live', domainname, 'cert.pem'));
/*
opts.ca = fs.readFileSync(path.join(opts.configDir, 'live', domainname, 'chain.pem'), 'ascii')
.split('-----END CERTIFICATE-----')
.filter(function (ca) {
@ -21,6 +22,7 @@ module.exports.create = function (opts) {
}).map(function (ca) {
return (ca + '-----END CERTIFICATE-----').trim();
});
*/
cb(null, require('tls').createSecureContext(opts));
}