-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathraw_certificate.go
More file actions
28 lines (26 loc) · 834 Bytes
/
raw_certificate.go
File metadata and controls
28 lines (26 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package electron
import "github.com/gopherjs/gopherjs/js"
// Certificate a Structure
type Certificate struct {
*js.Object
// PEM encoded data
Data string `js:"data"`
// Issuer principal
Issuer *js.Object `js:"issuer"`
// Issuer's Common Name
IssuerName string `js:"issuerName"`
// Issuer certificate (if not self-signed)
IssuerCert *js.Object `js:"issuerCert"`
// Subject principal
Subject *js.Object `js:"subject"`
// Subject's Common Name
SubjectName string `js:"subjectName"`
// Hex value represented string
SerialNumber string `js:"serialNumber"`
// Start date of the certificate being valid in seconds
ValidStart float64 `js:"validStart"`
// End date of the certificate being valid in seconds
ValidExpiry float64 `js:"validExpiry"`
// Fingerprint of the certificate
Fingerprint string `js:"fingerprint"`
}