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

337 Views Asked by At

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 --> CMP certificate request

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

1

There are 1 best solutions below

0
primetomas On

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.