Topic: Generate certificate from certificate request
I am trying to code an certificate generator so that it I can sign an certificate request with an CA key.
I did find a lot of examples on how to create a certificate with both the keys of requester and issuer but I do not have the key file of the requester only an certificate or an request for an certificate.
So, I have seen that it is possible to create certificate requests with MakeCertReq() but how do you use the request for creating an certificate?
With openssl you would do this e.g.:
openssl x509 -req -in server-request.pem -days 1000
-sha1 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01