@super-protocol/pki-client 1.5.1 → 1.5.2
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/dist/pkiClient.js +5 -5
- package/package.json +1 -1
package/dist/pkiClient.js
CHANGED
|
@@ -70,15 +70,15 @@ class PkiClient {
|
|
|
70
70
|
async getCaCert(certType = pki_common_1.CertificateType.Basic) {
|
|
71
71
|
return this.attestationServiceClient.getCaCert({ type: certType });
|
|
72
72
|
}
|
|
73
|
-
async generateSslCertificate(
|
|
73
|
+
async generateSslCertificate(params, options = this.defaultOptions) {
|
|
74
74
|
let commonName;
|
|
75
75
|
let domains;
|
|
76
|
-
if (Array.isArray(
|
|
77
|
-
domains =
|
|
76
|
+
if (Array.isArray(params)) {
|
|
77
|
+
domains = params;
|
|
78
78
|
}
|
|
79
79
|
else {
|
|
80
|
-
commonName =
|
|
81
|
-
domains =
|
|
80
|
+
commonName = params.commonName;
|
|
81
|
+
domains = params.domains;
|
|
82
82
|
}
|
|
83
83
|
const keys = this.keyPair;
|
|
84
84
|
const challenge = await this.generateChallenge(keys.publicKeyPem);
|