Topic: Creating user certificate using CA certificates and keys

Hi,

I am trying to generate user certificates using CA certificate and key in wolfssl. Basically, I am trying to realize the below openssl command.

openssl x509 -req -in example.org.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out example.org.crt

In wolfssl, below steps has been followed.

1. Called wc_MakeCertReq() with user private key key
2. Now I should call wc_SignCert() to with CA key. But this API does not have an option to pass CA certificate.

Am I following the right steps?  I have referred wolfcrypt/test.c but not able to find what I am looking for.

Can you provide a example to create the user certificate from CA certificate.


Thanks,

Share

Re: Creating user certificate using CA certificates and keys

Hi delphiwolf,

Sure thing, we have an example of creating a CA signed certificate here:

https://github.com/wolfSSL/wolfssl-exam … er/certgen

Let me know if you have any questions on that!


Warm Regards,

Kaleb