Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

pkix/goCertCenter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Reference Go Report Card

It is quite easy to use CertCenter's API with your Go projects.
We recommend to get the source via a go get certcenter.com/go.

package main

import (
	"fmt"
	"io/ioutil"
	certcenter "certcenter.com/go"
)

/* Set your Authorization Token
 */
func init() {
	certcenter.Bearer = "aValidToken.oauth2.certcenter.com"
}

func main() {

	// Get a Quote
	res, _ := certcenter.Quote(&certcenter.QuoteRequest{
		ProductCode: "Symantec.SecureSiteEV",
		SubjectAltNameCount: 0,
		ValidityPeriod: 24,
		ServerCount: 1,
	})
	fmt.Println(res)

	// Validate a CSR (PEM-encoded PKCS#10)
	csr, _ := ioutil.ReadFile("csr")
	res, _ := certcenter.ValidateCSR(&certcenter.ValidateCSRRequest{CSR: string(csr)})
	fmt.Println(res)

	return
}

Find more examples and detailed information: https://developers.certcenter.com/v1/reference

Have fun!

About

CertCenter API Go Implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages