thomasbonham
asked on
Create a CA within C using openssl
I'm trying to figure out how to out what headers and functions to use within my program for creating my own CA when the program runs through it setup.
Thank you for the help.
Thank you for the help.
The man pages of open ssl http://www.openssl.org/docs/apps/x509.html# reads clearly how to create a certificate (or CA). You can go through it and get a CA.
ASKER
I have both of those books but I'm not able to find the information that I'm looking for within them.
I have also seen the link that you posted. I'm looking for how to do it within C itself. I'm not wanting to do system or anything else like that.
Thank you for the help.
I have also seen the link that you posted. I'm looking for how to do it within C itself. I'm not wanting to do system or anything else like that.
Thank you for the help.
You can use this command to create a CA:
openssl x509 -req -in careq.pem -extfile openssl.cnf -extensions v3_ca \
-signkey key.pem -out cacert.pem
openssl x509 -req -in careq.pem -extfile openssl.cnf -extensions v3_ca \
-signkey key.pem -out cacert.pem
ASKER
Yes I have used the command line option of openssl many times. I need to do it within C itself. When I set it up on computers they will not have openssl install on them.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
I guess you will have more luck just using the provided programs and use them via system....
Regards
Friedrich