Skip to content

Commit

Permalink
fix error for parse certificate san
Browse files Browse the repository at this point in the history
  • Loading branch information
donskov committed Feb 8, 2019
1 parent 4e93497 commit 2f291e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"@babel/runtime": "^7.3.1",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.5",
"babel-plugin-dynamic-import-node": "^2.2.0",
"babel-polyfill": "^6.26.0",
Expand Down
8 changes: 7 additions & 1 deletion src/helpers/cert_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,13 @@ const CertHelper = {
}));
break;
case '2.5.29.17': // Subject Alternative Name
extension.value = item.parsedValue.altNames.map(name => name.value);
extension.value = item.parsedValue.altNames.map((name) => {
if (typeof name.value === 'string') {
return name.value;
}

return '';
});
break;
case '2.5.29.14': // Subject Key Identifier
extension.value = [{}];
Expand Down

0 comments on commit 2f291e4

Please sign in to comment.