@itentialopensource/adapter-utils 4.48.5 → 4.48.6

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/CHANGELOG.md CHANGED
@@ -1,4 +1,14 @@
1
1
 
2
+ ## 4.48.6 [01-03-2023]
3
+
4
+ * Add passphrase as a ssl option
5
+
6
+ Closes ADAPT-2449
7
+
8
+ See merge request itentialopensource/adapter-utils!245
9
+
10
+ ---
11
+
2
12
  ## 4.48.5 [12-29-2022]
3
13
 
4
14
  * Update file package.json - update jsonwebtoken version
@@ -78,6 +78,7 @@ let sslCAFile = null;
78
78
  let sslKeyFile = null;
79
79
  let sslCertFile = null;
80
80
  let sslCiphers = null;
81
+ let sslPassphrase = null;
81
82
  let secureProtocol = null;
82
83
  let proxyEnabled = false;
83
84
  let proxyHost = null;
@@ -1902,6 +1903,9 @@ function buildTokenRequest(reqPath, reqBody, callProperties, callback) {
1902
1903
  if (sslCiphers) {
1903
1904
  options.ciphers = sslCiphers;
1904
1905
  }
1906
+ if (sslPassphrase) {
1907
+ options.passphrase = sslPassphrase;
1908
+ }
1905
1909
  if (secureProtocol) {
1906
1910
  options.secureProtocol = secureProtocol;
1907
1911
  }
@@ -3662,6 +3666,11 @@ class ConnectorRest {
3662
3666
  sslCiphers = props.ssl.ciphers;
3663
3667
  }
3664
3668
 
3669
+ // set the ssl passphrase (optional - default is null)
3670
+ if (typeof props.ssl.passphrase === 'string') {
3671
+ sslPassphrase = props.ssl.passphrase;
3672
+ }
3673
+
3665
3674
  // set the ssl ciphers (optional - default is null)
3666
3675
  if (typeof props.ssl.secure_protocol === 'string') {
3667
3676
  secureProtocol = props.ssl.secure_protocol;
@@ -3949,6 +3958,9 @@ class ConnectorRest {
3949
3958
  if (sslCiphers) {
3950
3959
  options.ciphers = sslCiphers;
3951
3960
  }
3961
+ if (sslPassphrase) {
3962
+ options.passphrase = sslPassphrase;
3963
+ }
3952
3964
  if (secureProtocol) {
3953
3965
  options.secureProtocol = secureProtocol;
3954
3966
  }
@@ -4133,6 +4145,9 @@ class ConnectorRest {
4133
4145
  if (sslCiphers) {
4134
4146
  options.ciphers = sslCiphers;
4135
4147
  }
4148
+ if (sslPassphrase) {
4149
+ options.passphrase = sslPassphrase;
4150
+ }
4136
4151
  if (secureProtocol) {
4137
4152
  options.secureProtocol = secureProtocol;
4138
4153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-utils",
3
- "version": "4.48.5",
3
+ "version": "4.48.6",
4
4
  "description": "Itential Adapter Utility Libraries",
5
5
  "scripts": {
6
6
  "postinstall": "node utils/setup.js",