Getting pkcs12: unknown attribute with OID 1.3.6.1.4.1.311.17.2 with ToPEM call

150 views
Skip to first unread message

jyo...@gmail.com

unread,
Nov 5, 2018, 12:25:53 AM11/5/18
to golang-nuts
Hi

I'm trying to extract a certificates,keys from the .pfx file using the call ToPEM.

I get this error

pkcs12: unknown attribute with OID 1.3.6.1.4.1.311.17.2

I see Decode in pkcs12 package expects only one certificate and one key file in the .pfx file. My scenario is it has multiple certs including cacert in the .pfx form. So I used ToPEM call.
But I get the above mentioned error.

If anybody knows how to resolve this , pls let me  know


hannes....@firstattribute.com

unread,
Apr 29, 2020, 12:42:05 PM4/29/20
to golang-nuts
Well, FWIW, this still seems to be an issue in 2020 with Go 1.14
Reply all
Reply to author
Forward
0 new messages