We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad810c1 commit 1d3268fCopy full SHA for 1d3268f
lib/LinkedDataFragmentsServer.js
@@ -15,8 +15,11 @@ function LinkedDataFragmentsServer(options) {
15
server = require('http').createServer();
16
break;
17
case 'https':
18
- var httpsOptions = _.mapValues((options.ssl || {}).keys || {}, readHttpsOption);
19
- server = require('https').createServer(httpsOptions);
+ var ssl = options.ssl || {};
+ // WebID authentication requires a client certificate
20
+ if (ssl.webid)
21
+ ssl.requestCert = ssl.rejectUnauthorized = true;
22
+ server = require('https').createServer(_.mapValues(ssl.keys, readHttpsOption));
23
24
default:
25
throw new Error('The configured protocol ' + options.protocol + ' is invalid.');
0 commit comments