pkcs12

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package pkcs12 provides PFX/PKCS#12 export using pure Go.

Index

Constants

View Source
const MinPasswordBytes = 8

MinPasswordBytes is the minimum password length accepted for PFX export.

Variables

This section is empty.

Functions

func Encode

func Encode(privateKey crypto.Signer, cert *x509.Certificate, chain []*x509.Certificate, password string) ([]byte, error)

Encode creates a PFX/PKCS#12 archive using pure Go implementation. Uses Modern (AES-256-CBC + SHA-256) encryption with a strong PBKDF2 iteration count (L15).

Types

This section is empty.

Jump to

Keyboard shortcuts

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