如何使用Golang通过HTTP与EJBCA CMP(证书管理协议)进行通信?

huangapple go评论132阅读模式
英文:

How to communicate to EJBCA CMP (Certificate Management Protocol) using HTTP in Golang?

问题

你想使用Golang语言通过HTTP通信向EJBCA服务器发送/生成一个使用CMP(证书管理协议)的证书生成请求?我在这里找到了一个类似的JAVA实现--> https://stackoverflow.com/questions/60654581/cmp-certificate-request

有没有关于如何使用Golang实现相同功能的建议?

英文:

Wanted to send/generate a Certificate generation Request to EJBCA server using CMP(Certificate Management protocol) with HTTP communication using Golang language?

I found a similar implementation with JAVA here --> https://stackoverflow.com/questions/60654581/cmp-certificate-request

Any suggestions on how to do it the same with Golang?

答案1

得分: 1

通常在其他语言中,比如C/C++、Java、C#,你会使用一个实现了更高级API的库来进行CMP消息的创建、解析、验证等操作,例如Bouncy Castle或OpenSSL。在Go语言中,我不知道是否存在一个好的模块库来实现这个功能?当然,你始终可以手动编写ASN.1代码,因为基础仍然是PKCS#10证书请求,但是需要进行很多包装以适应各种目的。

英文:

Typically in other languages like C/C++, Java, C# you use a library that imlements a higher level API to do the CMP message creation, parsing, verification etc, for example Bouncy Castle or OpenSSL. In Go I don't know if there exists a good module library for this? You can always hand-roll the ASN.1 of course, as the base is still PKCS#10 certificate requests, but with a lot of wrapping for various purposes.

huangapple
  • 本文由 发表于 2022年1月11日 17:22:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/70664307.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定