SSLMate / go-pkcs12

Go library for encoding and decoding PKCS#12 files

Home Page:https://pkg.go.dev/software.sslmate.com/src/go-pkcs12

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support triple DES certificate encryption

Marc-Pons opened this issue · comments

OpenSSL 3 throws an error of legacy algorithm when trying to parse P12 that uses RC2 to encrypt its certificates.

I would like to have the ability to encrypt the certificates with triple DES when generating P12. Pretty much an equivalent to the "-descert" flag of openssl.

I have created a proposal for this functionality in #35.

Thanks.

Any updates on this thread?

Can you try #39 and see if the with config / added asn1 option field fixes this support need?

@pschou Awesome, it works like a charm! It would be great if your PR #39 could be merged and I will proceed to close mine 😄

I think I want to re-write the logic to make a P12 object to fill and write out... Please stand by.

@Marc-Pons Do you mind pulling down the changes and trying out the refactored method? I would value your feedback and any help you may be willing to give, specifically by providing example(s).

@AGWA @marc1161 @Marc-Pons - Please take a look at the rewrite. I am suggesting an additional function call for CustomKeyEncryption for the case where one would want to encrypt different keys with different passwords.