You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
783 B
34 lines
783 B
import * as fs from 'fs';
|
|
|
|
module.exports = {
|
|
// radius secret
|
|
secret: 'testing123',
|
|
|
|
certificate: {
|
|
cert: fs.readFileSync('./ssl/cert/server.crt'),
|
|
key: [
|
|
{
|
|
pem: fs.readFileSync('./ssl/cert/server.key'),
|
|
passphrase: 'whatever2020'
|
|
}
|
|
]
|
|
},
|
|
|
|
// authentication
|
|
authentication: 'ldap',
|
|
authenticationOptions: {
|
|
url: 'ldap://127.0.0.1:1636',
|
|
base: 'dc=hokify,dc=com',
|
|
tlsOptions2: {
|
|
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
|
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt'),
|
|
|
|
// This is necessary only if using the client certificate authentication.
|
|
requestCert: true,
|
|
|
|
// This is necessary only if the client uses the self-signed certificate.
|
|
ca: [fs.readFileSync('ldap.gsuite.hokify.com.40567.key')]
|
|
}
|
|
}
|
|
};
|