diff --git a/package.json b/package.json index 3ce49cf4..593cf3b8 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "@mui/icons-material": "^5.4.4", "@mui/lab": "5.0.0-alpha.114", "@mui/material": "^5.5.0", - "@peculiar/x509": "1.12.3", + "@peculiar/x509": "1.8.4", "js-yaml": "^4.1.0", "moment": "^2.30.1", "next": "^14.2.15", diff --git a/src/modules/x509/extensions.ts b/src/modules/x509/extensions.ts index 3dc26edd..a6814ecf 100644 --- a/src/modules/x509/extensions.ts +++ b/src/modules/x509/extensions.ts @@ -63,9 +63,7 @@ export const EXTENSIONS_CONFIG: Record = { "2.5.29.17": { name: "Subject Alternative Name", toJSON(rawExtension: Extension) { - return new SubjectAlternativeNameExtension( - rawExtension.rawData, - ).toTextObject(); + return new SubjectAlternativeNameExtension(rawExtension.rawData).toJSON(); }, }, "2.5.29.19": {