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 7322d35 commit 2032f7fCopy full SHA for 2032f7f
backend/internal/certificate.js
@@ -728,10 +728,10 @@ const internalCertificate = {
728
getCertificateInfoFromFile: (certificate_file, throw_expired) => {
729
let certData = {};
730
731
- return utils.exec('openssl x509 -in ' + certificate_file + ' -subject -noout')
+ return utils.exec('openssl x509 -in ' + certificate_file + ' -ext subjectAltName -noout')
732
.then((result) => {
733
// subject=CN = something.example.com
734
- const regex = /(?:subject=)?[^=]+=\s+(\S+)/gim;
+ const regex = /^DNS:([^,]+)/gim;
735
const match = regex.exec(result);
736
737
if (typeof match[1] === 'undefined') {
0 commit comments