Filippo Valsorda
9c16a0384b
pkcs12: add a note suggesting ToPEM for multiple certificates/keys
...
Updates golang/go#14015
Change-Id: Iffe73540c5d74e4b3d0664035a1bdce5b47663ee
Reviewed-on: https://go-review.googlesource.com/c/160258
Reviewed-by: Bryan C. Mills <bcmills@google.com >
2019-01-31 18:23:23 +00:00
Filippo Valsorda
ccddf3741a
pkcs12: note that this package is frozen and point to an alternative
...
Change-Id: Ia4d87b816f176194cd9e37efb42e273d678a84b7
Reviewed-on: https://go-review.googlesource.com/c/160259
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2019-01-29 21:01:02 +00:00
Filippo Valsorda
54b0dbbbf4
Revert "pkcs12: add a DecodeAll method"
...
This reverts commit bf88e3f4ba .
Reason for revert: https://go-review.googlesource.com/c/crypto/+/105876/12#message-0dad31af2b487e895ee6926ded82f85ac81c74f8
Updates golang/go#14015
Change-Id: I8eb3ed73f78ac11841ad73435bba00a330d59b58
Reviewed-on: https://go-review.googlesource.com/c/160257
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2019-01-29 20:08:51 +00:00
Julien Kauffmann
bf88e3f4ba
pkcs12: add a DecodeAll method
...
Addition of a DecodeAll function as it was mentioned in #14015 .
This solves a need many people seem to have, where there is no effective
way loading PKCS12 files that contain more than one certificate and one
private key.
The utility functions used by Decode are all internal, which makes
implementing this on the user-side tedious, hence the suggestion of
providing a more liberal version of the function: DecodeAll.
Fixes golang/go#14015
Change-Id: I03c541553b6cb488c2c59d39575342a43136e592
GitHub-Last-Rev: 05f6847ff80ca34c92a01a688c7b81e874af3009
GitHub-Pull-Request: golang/crypto#38
Reviewed-on: https://go-review.googlesource.com/c/105876
Reviewed-by: Adam Shannon <adamkshannon@gmail.com >
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org >
2019-01-29 17:05:51 +00:00
Fredrik Forsmo
459e265272
pkcs12: fix ToPEM to not ignore non-nil error from getSafeContents
...
Fixes golang/go#19542
Change-Id: I60d2370d1d1e0763c72c9cc203ea2ff21123af73
Reviewed-on: https://go-review.googlesource.com/38261
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2017-03-17 16:37:34 +00:00
Brad Fitzpatrick
f23ba3a5ee
x/crypto/pkcs12: fix typo in struct tag
...
No test, though, because I don't know this code. Sad that it passes
with the typo, though.
Fixes golang/go#13855
Change-Id: I1170baa0f94ae4b671f5ca654cb7dcc393d1cc4d
Reviewed-on: https://go-review.googlesource.com/18363
Reviewed-by: Adam Langley <agl@golang.org >
2016-01-07 16:18:51 +00:00
Paul Meyer
c8b9e6388e
x/crypto: Add pkcs12 package for reading pkcs12 data
...
Package pkcs12 provides some Go implementations of PKCS#12.
This implementation is distilled from https://tools.ietf.org/html/rfc7292 and
referenced documents. It is intented for decoding P12/PFX-stored certificate+key
for use with the crypto/tls package.
Package includes @dgryski's RC2 implementation as a sub package as requested in
https://github.com/golang/go/issues/10621 .
Change-Id: I78401241e39cd0099e9082a3a227cf0a3a36e6d1
Reviewed-on: https://go-review.googlesource.com/11986
Reviewed-by: Adam Langley <agl@golang.org >
Run-TryBot: Adam Langley <agl@golang.org >
2015-10-04 18:58:11 +00:00