https://github.com/sslmate/go-pkcs12
Go library for encoding and decoding PKCS#12 files
https://github.com/sslmate/go-pkcs12
certificates p12 pfx pkcs12 pki webpki
Last synced: 5 months ago
JSON representation
Go library for encoding and decoding PKCS#12 files
- Host: GitHub
- URL: https://github.com/sslmate/go-pkcs12
- Owner: SSLMate
- License: bsd-3-clause
- Created: 2018-01-31T18:59:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-07-23T00:18:21.000Z (11 months ago)
- Last Synced: 2025-12-21T23:25:14.223Z (6 months ago)
- Topics: certificates, p12, pfx, pkcs12, pki, webpki
- Language: Go
- Homepage: https://pkg.go.dev/software.sslmate.com/src/go-pkcs12
- Size: 2.92 MB
- Stars: 151
- Watchers: 5
- Forks: 104
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# package pkcs12
[](https://pkg.go.dev/software.sslmate.com/src/go-pkcs12)
import "software.sslmate.com/src/go-pkcs12"
Package pkcs12 implements some of PKCS#12 (also known as P12 or PFX).
It is intended for decoding DER-encoded P12/PFX files for use with the `crypto/tls`
package, and for encoding P12/PFX files for use by legacy applications which
do not support newer formats. Since PKCS#12 uses weak encryption
primitives, it SHOULD NOT be used for new applications.
Note that only DER-encoded PKCS#12 files are supported, even though PKCS#12
allows BER encoding. This is because encoding/asn1 only supports DER.
This package is forked from `golang.org/x/crypto/pkcs12`, which is frozen.
The implementation is distilled from https://tools.ietf.org/html/rfc7292
and referenced documents.
## Import Path
Note that although the source code and issue tracker for this package are hosted
on GitHub, the import path is:
software.sslmate.com/src/go-pkcs12
Please be sure to use this path when you `go get` and `import` this package.
## Report Issues / Send Patches
Open an issue or PR at https://github.com/SSLMate/go-pkcs12