{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v2.0.0-alpha+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ca\n\nCopyright IBM Corp. All Rights Reserved.\n\nSPDX-License-Identifier: Apache-2.0\n\n## Functions\n\n```go\nfunc LoadCertificateECDSA(certPath string) (*x509.Certificate, error)\n```\nLoadCertificateECDSA load a ecdsa cert from a file in cert path\n\n## Types\n\n```go\ntype CA struct {\n\tName               string\n\tCountry            string\n\tProvince           string\n\tLocality           string\n\tOrganizationalUnit string\n\tStreetAddress      string\n\tPostalCode         string\n\t//SignKey  *ecdsa.PrivateKey\n\tSigner   crypto.Signer\n\tSignCert *x509.Certificate\n}\n```\n\n```go\nfunc NewCA(baseDir, org, name, country, province, locality, orgUnit, streetAddress, postalCode string) (*CA, error)\n```\nNewCA creates an instance of CA and saves the signing key pair in baseDir/name\n\n```go\nfunc (ca *CA) SignCertificate(baseDir, name string, ous, sans []string, pub *ecdsa.PublicKey,\n\tku x509.KeyUsage, eku []x509.ExtKeyUsage) (*x509.Certificate, error)\n```\nSignCertificate creates a signed certificate based on a built-in template and saves it in baseDir/name\n\n","path":"github.com/eric-erki/https-hyperledger.org/internal/cryptogen/ca","name":"ca","synopsis":"","isRedistributable":true}
