Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Handle cert fingerprints that contain '/' #6525

Merged
merged 1 commit into from
Jan 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion js/about/certerror.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,16 @@ class CertErrorPage extends React.Component {
var validExpiry = new Date()
validStart.setTime(detail.validStart * 1000)
validExpiry.setTime(detail.validExpiry * 1000)
var fingerprint = detail.fingerprint.split('/')
var algorithm = fingerprint.shift()
this.setState({
certDetail: true,
certIssuerName: detail.issuerName,
certSubjectName: detail.subjectName,
certSerialNumber: seperateHex(detail.serialNumber),
certValidStart: validStart.toString(),
certValidExpiry: validExpiry.toString(),
certFingerprint: detail.fingerprint.split('/')
certFingerprint: [algorithm, fingerprint.join('/')]
})
})
}
Expand Down