Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ sudo: false
language: node_js
node_js:
- "6.0"
- "8.0"
- "node"
env:
- CXX=g++-4.8

Expand Down
4 changes: 2 additions & 2 deletions lib/create-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ function createServer (argv, app) {
throw new Error('Can\'t find SSL cert in ' + argv.sslCert)
}

var credentials = {
var credentials = Object.assign({
key: key,
cert: cert
}
}, argv)

if (ldp.webid && ldp.auth === 'tls') {
credentials.requestCert = true
Expand Down
3 changes: 0 additions & 3 deletions lib/handlers/allow.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ var async = require('async')
var debug = require('../debug').ACL
var utils = require('../utils')

// TODO should this be set?
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'

function allow (mode) {
return function allowHandler (req, res, next) {
var ldp = req.app.locals.ldp
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"dirty-chai": "^1.2.2",
"hippie": "^0.5.0",
"mocha": "^3.2.0",
"nock": "^9.0.2",
"nock": "^9.0.14",
"node-mocks-http": "^1.5.6",
"nyc": "^10.1.2",
"proxyquire": "^1.7.10",
Expand All @@ -98,7 +98,7 @@
"scripts": {
"solid": "node ./bin/solid.js",
"standard": "standard",
"mocha": "nyc mocha ./test/**/*.js",
"mocha": "NODE_TLS_REJECT_UNAUTHORIZED=0 nyc mocha ./test/**/*.js",
"test": "npm run standard && npm run mocha",
"test-integration": "mocha ./test/integration/*.js",
"test-unit": "mocha ./test/unit/*.js",
Expand Down
1 change: 0 additions & 1 deletion test/integration/account-creation-oidc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const path = require('path')
const fs = require('fs-extra')

describe('AccountManager (OIDC account creation tests)', function () {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'
this.timeout(10000)

var serverUri = 'https://localhost:3457'
Expand Down
1 change: 0 additions & 1 deletion test/integration/account-creation-tls.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
//
// describe('AccountManager (TLS account creation tests)', function () {
// this.timeout(10000)
// process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'
//
// var address = 'https://localhost:3457'
// var host = 'localhost:3457'
Expand Down
5 changes: 2 additions & 3 deletions test/integration/acl-tls.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ var userCredentials = {

describe('ACL with WebID+TLS', function () {
this.timeout(10000)
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'

var ldpHttpsServer
var ldp = ldnode.createServer({
mount: '/test',
Expand All @@ -63,7 +61,8 @@ describe('ACL with WebID+TLS', function () {
sslCert: path.join(__dirname, '../keys/cert.pem'),
webid: true,
strictOrigin: true,
auth: 'tls'
auth: 'tls',
rejectUnauthorized: false
})

before(function (done) {
Expand Down
2 changes: 0 additions & 2 deletions test/integration/errors-oidc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ const fs = require('fs-extra')
const expect = require('chai').expect

describe('OIDC error handling', function () {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'

const serverUri = 'https://localhost:3457'
var ldpHttpsServer
const rootPath = path.join(__dirname, '../resources/accounts/errortests')
Expand Down
2 changes: 0 additions & 2 deletions test/integration/http-copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ var solidServer = require('../../index')

describe('HTTP COPY API', function () {
this.timeout(10000)
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'

var address = 'https://localhost:3456'

var ldpHttpsServer
Expand Down