@sassoftware/viya-serverjs 0.6.3-2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +1 -1
- package/lib/iService.js +3 -2
- package/package.json +1 -1
- package/src/iService.js +2 -1
package/Dockerfile
CHANGED
|
@@ -28,7 +28,7 @@ ENV HAPIDEBUG=NO
|
|
|
28
28
|
# ENV USETOKEN=YES
|
|
29
29
|
|
|
30
30
|
#sample setup for creating a temporary cert and key
|
|
31
|
-
ENV TLS_CREATE="C:US,ST:NC,L:Cary,O:SAS Institute,OU:STO,CN:localhost"
|
|
31
|
+
# ENV TLS_CREATE="C:US,ST:NC,L:Cary,O:SAS Institute,OU:STO,CN:localhost"
|
|
32
32
|
|
|
33
33
|
# You can specify your own cet and key
|
|
34
34
|
# ENV TLS_CRT=./tls/tls.crt
|
package/lib/iService.js
CHANGED
|
@@ -308,7 +308,7 @@ function getTls() {
|
|
|
308
308
|
}
|
|
309
309
|
function _getTls() {
|
|
310
310
|
_getTls = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
311
|
-
var options, subjt, subj, d, attr, pems, tls;
|
|
311
|
+
var options, tlscrt, subjt, subj, d, attr, pems, tls;
|
|
312
312
|
return _regenerator().w(function (_context4) {
|
|
313
313
|
while (1) switch (_context4.n) {
|
|
314
314
|
case 0:
|
|
@@ -319,7 +319,8 @@ function _getTls() {
|
|
|
319
319
|
clientCertificate: true,
|
|
320
320
|
extensions: {}
|
|
321
321
|
};
|
|
322
|
-
|
|
322
|
+
tlscrt = process.env.TLS_CREATE || "C:US,ST:NC,L:Cary,O:SAS Institute,OU:STO,CN:localhost,ALT:na.sas.com";
|
|
323
|
+
subjt = tlscrt.replaceAll('"', '').trim();
|
|
323
324
|
subj = subjt.split(',');
|
|
324
325
|
d = {};
|
|
325
326
|
subj.map(function (c) {
|
package/package.json
CHANGED
package/src/iService.js
CHANGED
|
@@ -248,7 +248,8 @@ async function getTls () {
|
|
|
248
248
|
clientCertificate: true,
|
|
249
249
|
extensions : {},
|
|
250
250
|
};
|
|
251
|
-
let
|
|
251
|
+
let tlscrt = process.env.TLS_CREATE || "C:US,ST:NC,L:Cary,O:SAS Institute,OU:STO,CN:localhost,ALT:na.sas.com";
|
|
252
|
+
let subjt = tlscrt.replaceAll('"', '').trim();
|
|
252
253
|
let subj = subjt.split(',');
|
|
253
254
|
|
|
254
255
|
let d = {};
|