certificate

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package certificate loads Push Services certificates exported from your Keychain in Personal Information Exchange format (*.p12).

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrExpired = errors.New("certificate has expired or is not yet valid")
)

Certificate errors

Functions

func Decode

func Decode(p12 []byte, password string) (*x509.Certificate, *rsa.PrivateKey, error)

Decode and verify an in memory .p12 certificate (DER binary format).

func Load

func Load(filename, password string) (*x509.Certificate, *rsa.PrivateKey, error)

Load a .p12 certificate from disk.

func TLS added in v0.4.0

func TLS(cert *x509.Certificate, privateKey *rsa.PrivateKey) tls.Certificate

TLS wraps an x509 certificate as a tls.Certificate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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