英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论