certsapi

package
v0.0.0-...-147f0cf Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package certs with POGS capability definitions of the certificate services. Unfortunately capnp does generate POGS types so we need to duplicate them

Index

Constants

View Source
const CreateDeviceCertMethod = "createDeviceCert"
View Source
const CreateServiceCertMethod = "createServiceCert"
View Source
const CreateUserCertMethod = "createUserCert"
View Source
const DefaultDeviceCertValidityDays = 100

DefaultDeviceCertValidityDays with validity of generated device certificates

View Source
const DefaultServiceCertValidityDays = 100

DefaultServiceCertValidityDays with validity of generated service certificates

View Source
const DefaultUserCertValidityDays = 100

DefaultUserCertValidityDays with validity of generated client certificates

View Source
const ManageCertsCapability = "manageCerts"

ManageCertsCapability is the name of the Thing/Capability that handles management requests

View Source
const ServiceName = "certs"

ServiceName to connect to the service

View Source
const VerifyCertMethod = "verifyCert"

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCertResp

type CreateCertResp struct {
	CertPEM   string
	CaCertPEM string
}

type CreateDeviceCertArgs

type CreateDeviceCertArgs struct {
	DeviceID     string `json:"deviceID"`
	PubKeyPEM    string `json:"pubKeyPEM"`
	ValidityDays int    `json:"validityDays"`
}

type CreateServiceCertArgs

type CreateServiceCertArgs struct {
	ServiceID    string   `json:"serviceID"`
	PubKeyPEM    string   `json:"pubKeyPEM"`
	Names        []string `json:"names"`
	ValidityDays int      `json:"validityDays"`
}

type CreateUserCertArgs

type CreateUserCertArgs struct {
	UserID       string `json:"userID"`
	PubKeyPEM    string `json:"pubKeyPEM"`
	ValidityDays int    `json:"validityDays"`
}

type VerifyCertArgs

type VerifyCertArgs struct {
	ClientID string `json:"clientID"`
	CertPEM  string `json:"certPEM"`
}

Jump to

Keyboard shortcuts

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