Documentation ¶
Index ¶
Constants ¶
View Source
const TimeFormat = "2006-01-02T15:04:05Z"
Variables ¶
This section is empty.
Functions ¶
func Verify ¶
func Verify(signature string, signatureData *SignatureData) (*x509.Certificate, error)
Verify ensures that a given signature was created by a private key matching one of the given instance certificates. It returns the matching certificate, which should further be verified to be the identity certificate, and to be issued by a chain leading to the root CA certificate. There's a util function for this named Validate.
Types ¶
type SignatureData ¶
type SignatureData struct { SigningTime time.Time Role string // CFInstanceCertContents are the full contents/body of the file // available at CF_INSTANCE_CERT. When viewed visually, this file // will contain two certificates. Generally, the first one is the // identity certificate itself, and the second one is the intermediate // certificate that issued it. CFInstanceCertContents string }
Click to show internal directories.
Click to hide internal directories.