aboutsummaryrefslogtreecommitdiff
path: root/lib/internal/crypto/certificate.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/crypto/certificate.js')
-rw-r--r--lib/internal/crypto/certificate.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/internal/crypto/certificate.js b/lib/internal/crypto/certificate.js
index 5eaa5ce056..35325874ba 100644
--- a/lib/internal/crypto/certificate.js
+++ b/lib/internal/crypto/certificate.js
@@ -17,7 +17,8 @@ function verifySpkac(spkac) {
if (!isArrayBufferView(spkac)) {
throw new ERR_INVALID_ARG_TYPE(
'spkac',
- ['Buffer', 'TypedArray', 'DataView']
+ ['Buffer', 'TypedArray', 'DataView'],
+ spkac
);
}
return certVerifySpkac(spkac);
@@ -28,7 +29,8 @@ function exportPublicKey(spkac, encoding) {
if (!isArrayBufferView(spkac)) {
throw new ERR_INVALID_ARG_TYPE(
'spkac',
- ['string', 'Buffer', 'TypedArray', 'DataView']
+ ['string', 'Buffer', 'TypedArray', 'DataView'],
+ spkac
);
}
return certExportPublicKey(spkac);
@@ -39,7 +41,8 @@ function exportChallenge(spkac, encoding) {
if (!isArrayBufferView(spkac)) {
throw new ERR_INVALID_ARG_TYPE(
'spkac',
- ['string', 'Buffer', 'TypedArray', 'DataView']
+ ['string', 'Buffer', 'TypedArray', 'DataView'],
+ spkac
);
}
return certExportChallenge(spkac);