pantahub

package
v0.0.0-...-c03dbfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateOwnership

func ValidateOwnership(exts *utils.PHExtensions, public tpm2.Public) (string, error)

ValidateOwnership validate ownership of a certificate on pantahub

Types

type RegisterIDevIDReq

type RegisterIDevIDReq struct {
	Cert       string `json:"csr"`
	Name       string `json:"name"`
	DeviceName string `json:"device-name"`
}

RegisterIDevIDReq register device request payload

type RegisterIDevIDRes

type RegisterIDevIDRes struct {
	Cert   string     `json:"crt"`
	Device *deviceAPI `json:"device"`
}

RegisterIDevIDRes register device response payload

func RegisterIDevID

func RegisterIDevID(cert *x509.CertificateRequest, iDevIDName, akName string) (*RegisterIDevIDRes, error)

RegisterIDevID register and new device on pantahub using the IDevID

type VerifyOwnershipReq

type VerifyOwnershipReq struct {
	Service    string `json:"service"`
	TokenID    string `json:"token-id"`
	Owner      string `json:"owner"`
	IDevIDName string `json:"idevid-name"`
	Signature  string `json:"signature"`
}

VerifyOwnershipReq pantahub verify token ownership

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL