add lamassu-ca scripts
This commit is contained in:
parent
b612a83af8
commit
3e8e846d95
3 changed files with 208 additions and 280 deletions
|
|
@ -14,10 +14,6 @@ const logs = require('../logs')
|
|||
const supportLogs = require('../support_logs')
|
||||
const options = require('../options')
|
||||
|
||||
const caOptions = {
|
||||
ca: '/etc/ssl/certs/Lamassu_CA.pem'
|
||||
}
|
||||
|
||||
app.use(morgan('dev'))
|
||||
app.use(helmet({noCache: true}))
|
||||
app.use(cookieParser())
|
||||
|
|
@ -29,7 +25,7 @@ app.use(serveStatic(path.resolve(__dirname, '..', '..', 'public'), {
|
|||
const certOptions = {
|
||||
key: fs.readFileSync(options.keyPath),
|
||||
cert: fs.readFileSync(options.certPath),
|
||||
ca: [fs.readFileSync(caOptions.ca)],
|
||||
ca: [fs.readFileSync(options.lamassuCaPath)],
|
||||
requestCert: true,
|
||||
rejectUnauthorized: true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue