在内存证书中用于客户端身份验证

I have a non-exportable certificate in my windows box which works fine with IE and Chrome when I try to access websites.

I would like to be able to use this certificate from a Go CLI application to access a HTTPS URI that requires client certificate authentication but also a non standard CA cert which I suppose I need to add to the request if its not already there.

Some code example would be appreciated since documentation I found concerning calls do not have any.

I suppose that I would use PFXExportCertStoreEx API in order to extract the certificate from memory.

I also found this which might help Calling PFXExportCertStoreEx in Go does not return data but it doesn't show how to use the certificate in a https call.