@vizamodo/aws-sts-core 0.4.20 → 0.4.21
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/sts/issue.js +3 -0
- package/package.json +1 -1
package/dist/sts/issue.js
CHANGED
|
@@ -197,6 +197,9 @@ function parseCertSerialDec(normalizedCertBase64) {
|
|
|
197
197
|
if (der[offset++] !== 0x30)
|
|
198
198
|
throw new Error("bad tbs");
|
|
199
199
|
readLen();
|
|
200
|
+
// Log raw DER bytes to diagnose parser mismatch
|
|
201
|
+
const rawBytes8to20 = Array.from(der.slice(8, 20)).map(b => b.toString(16).padStart(2, '0')).join(' ');
|
|
202
|
+
console.debug("[der-raw]", { rawBytes8to20, derLen: der.length });
|
|
200
203
|
const beforeVersionOffset = offset;
|
|
201
204
|
if (der[offset] === 0xa0) {
|
|
202
205
|
offset++;
|