Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Openssl and generating x509 certs questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
johnny_martins00
Apprentice
Apprentice


Joined: 01 Jun 2006
Posts: 293

PostPosted: Fri Nov 03, 2006 2:11 am    Post subject: Openssl and generating x509 certs questions Reply with quote

Hi. Im generating x509 certs for my Vpn, and that all ok till now. usually i use the
Code:
openssl req -new -nodes -newkey rsa:1024 -sha1 -keyform PEM -keyout privkey.pem -outform PEM -out newreq.pem
command to generate a certificate and a private key, but the problem now is that the fields that i have to enter information, country common name etc..., i have to get them from a file. Is there anyway to insert these fields from a file or any other way???
Im using a C programm to get the fields that a client types and them using the system function im creating the x509 certs, but till now didnt make it to insert automatically these fields...
Anyone knows a solution for this??
Thk
Back to top
View user's profile Send private message
johnny_martins00
Apprentice
Apprentice


Joined: 01 Jun 2006
Posts: 293

PostPosted: Fri Nov 03, 2006 4:06 pm    Post subject: Reply with quote

i did some search on the web and i think that the solution its using a oid_file , a configuration file, but didnt understanded ... Did domebody allready used this option??
Thk
Back to top
View user's profile Send private message
johnny_martins00
Apprentice
Apprentice


Joined: 01 Jun 2006
Posts: 293

PostPosted: Mon Nov 06, 2006 12:31 am    Post subject: Reply with quote

Can anyone help me on this subject??
Thk
Back to top
View user's profile Send private message
johnny_martins00
Apprentice
Apprentice


Joined: 01 Jun 2006
Posts: 293

PostPosted: Mon Nov 06, 2006 5:59 pm    Post subject: Reply with quote

Anyone? All i want is that openssl don't promp me to insert the fields... Dows anyone knows how?
Back to top
View user's profile Send private message
johnny_martins00
Apprentice
Apprentice


Joined: 01 Jun 2006
Posts: 293

PostPosted: Mon Nov 06, 2006 10:54 pm    Post subject: Reply with quote

oki after some research on the web i found that i can generate a cert using the -subj option.
Code:

openssl req -x509 -nodes -days 365 \
   -subj '/C=PT/ST=Porto/L=Porto/CN=www.dei.isep.ipp.pt' \
   -newkey rsa:1024 -keyout mycert.pem -out mycert.pem

My question is: this way there are 3 fields that i dont insert values that ususally have to,
1 - the email address
2- Challenge Password
3- Optional Company name

Are these optional, or have i to insert them?is there any problem if i create a cert without these fields??
Thk
Back to top
View user's profile Send private message
johnny_martins00
Apprentice
Apprentice


Joined: 01 Jun 2006
Posts: 293

PostPosted: Wed Nov 15, 2006 2:34 pm    Post subject: Reply with quote

Can anyone help on how can i skip the step for teh cakey.pem??? geting the psswd from a file or inserting from a command?
Thk
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum