Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to create new certificate
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
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2196

PostPosted: Fri Jul 04, 2008 11:22 am    Post subject: Unable to create new certificate Reply with quote

I followed this how to and I keep running into trouble during the SSL cert creation.

Here is the code in the section that I am having trouble with:

Code:
# cd /etc/ssl/
# nano -w openssl.cnf

Change the following default values for your domain:
countryName_default
stateOrProvinceName_default
localityName_default
0.organizationName_default
commonName_default
emailAddress_default.

(If the variables are not already present, just add them in a sensible place.)

# cd misc
# ./CA.pl -newreq-nodes
# ./CA.pl -newca
# ./CA.pl -sign
# cp newcert.pem /etc/postfix
# cp newkey.pem /etc/postfix
# cp demoCA/cacert.pem /etc/postfix
(Now we do the same thing for apache.)

# openssl req -new > new.cert.csr
# openssl rsa -in privkey.pem -out new.cert.key
# openssl x509 -in new.cert.csr -out new.cert.cert -req -signkey new.cert.key -days 365
(Just leave the resulting certificates here for now.
We'll install them after Apache is installed.)


and when I get to this part:

Code:
pwnedclips misc # ./CA.pl -sign
Using configuration from /etc/ssl/openssl.cnf
unable to load CA private key
16249:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:647:Expecting: ANY PRIVATE KEY
Signed certificate is in newcert.pem


And then there is no newcert.pem anywhere.

I've googled for a good while and cannot find anything. Has anyone else seen this?
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Fri Jul 04, 2008 1:53 pm    Post subject: Reply with quote

Maybe https://forums.gentoo.org/viewtopic-t-697233-highlight-newreqnodes.html?
_________________
Microsoft is not the answer, Microsoft is the question, the answer is no.
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2196

PostPosted: Sat Jul 05, 2008 11:53 am    Post subject: Reply with quote

Same result
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
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