Creating certificate in golang

Hi All,

I am trying to achieve something which I have done easily in C# DotNet. What I am trying to do is to get a X509 certificate object/struct from a pfx and private key of it.
How we can do it in C# is:


var x509Cert = new X509Certificate2(“C:\mycert.pfx”, “password”);


Do we have any go package for this in go. I have explored crypto/x509 package. But seems it doesn’t have such function.

Thanks calmh. I was exactly looking for the same stuff.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.