// Loads public key for tls certificate
Loads public key for tls certificate
// Loads public key for tls certificate
func (s *server) TLSCert(ctx context.Context, in *ci.TLSCertRequest) (*ci.TLSCertResponse, error) {
	var resp *ci.TLSCertResponse = &ci.TLSCertResponse{}
	if s.certs.TLSCert == nil {
		log.Error("Prover: TLS Certificate not found - was the device provisioned correctly?")
		return &ci.TLSCertResponse{Status: ci.Status_FAIL}, errors.New("No TLS Certificate obtained")
	}
	resp.Certificate = [][]byte{s.certs.TLSCert, s.certs.DeviceSubCa}
	resp.Status = ci.Status_OK
	log.Info("Prover: Obtained TLS Cert.")
	return resp, nil
}
func ( s * server ) TLSCert ( ctx context . Context , in * ci . TLSCertRequest ) ( * ci . TLSCertResponse , error ) { var resp * ci . TLSCertResponse = & ci . TLSCertResponse { } if s . certs . TLSCert == nil { log . Error ( " " ) return & ci . TLSCertResponse { Status : ci . Status_FAIL } , errors . New ( " " ) } resp . Certificate = [ ] [ ] byte { s . certs . TLSCert , s . certs . DeviceSubCa } resp . Status = ci . Status_OK log . Info ( " " ) return resp , nil }
Loads public key for tls certificate
Loads public key for tls certificate
// provide TLS certificate chain