We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c02799f commit e23bb2aCopy full SHA for e23bb2a
src/Auth/Certificate.ts
@@ -27,11 +27,16 @@ export abstract class Certificate implements ICertificate {
27
28
let certificate: ICertificate = null;
29
30
+ if (!options.certificate) {
31
+ throwError("InvalidArgumentException", "Certificate cannot be null");
32
+ }
33
+
34
switch (options.type) {
35
case Certificate.PEM:
36
certificate = this.createPem(options.certificate, options.password, options.ca);
37
break;
38
case Certificate.PFX:
39
40
certificate = this.createPfx(options.certificate, options.password, options.ca);
41
42
default:
0 commit comments