Use in memory certificate for client authentication

大城市里の小女人 提交于 2019-12-06 06:42:12

问题


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.

来源:https://stackoverflow.com/questions/48004401/use-in-memory-certificate-for-client-authentication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!