pki

package
v0.0.0-...-37f2402 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTlsCertPool

func GetTlsCertPool(urlTemplate, caName string) (*x509.CertPool, error)

Types

type IntermediateInfo

type IntermediateInfo struct {
	IntermediateName string `json:"IntermediateName"`
	AppType          string `json:"AppType"`
	Cdp              string `json:"Cdp"`
	StoreLocation    string `json:"StoreLocation"`
	StoreName        string `json:"StoreName"`
	Body             string `json:"Body"`
	PEM              string `json:"PEM"`
}

type RootCAs

type RootCAs struct {
	RootsInfos []RootInfo `json:"RootsInfos"`
}

func FetchDataFromGetIssuerPki

func FetchDataFromGetIssuerPki(url string) (*RootCAs, error)

https://aka.ms/getissuers The v3 endpoint can be used to get ca certs For example https://issuer.pki.azure.com/dsms/issuercertificates?getissuersv3&caName=ame returns the ame certs

type RootInfo

type RootInfo struct {
	RootName      string             `json:"rootName"`
	CaName        string             `json:"CaName"`
	Cdp           string             `json:"Cdp"`
	AppType       string             `json:"AppType"`
	StoreLocation string             `json:"StoreLocation"`
	StoreName     string             `json:"StoreName"`
	Body          string             `json:"Body"`
	PEM           string             `json:"PEM"`
	Intermediates []IntermediateInfo `json:"Intermediates"`
}

Jump to

Keyboard shortcuts

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