Can't Open Ssl/openssl.cnf for Reading, No Such File or Directory
n00b
Joined: 08 Dec 2010
Posts: 60
Posted: Wed February 16, 2011 9:12 pm Postal service subject: [solved] unable to load CA private central | |||
| |||
Hello, i`m setting up a mail service server and have a problem with SMTP hallmark and SSL Support. I want to generate a cocky-signed certificate and have the following error: # /etc/ssl/misc/CA.pl -sign
newcert.pem doesn`t exist!! Thanks for the help. Last edited by arkas on Tue Feb 22, 2011 eight:45 am; edited 1 time in total |
Guru
Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom
Posted: Wed Feb 16, 2011 nine:43 pm Post subject: | |
| |
Practice you lot have a file chosen "serial" in the default ssl directory that you lot are trying to create the cert? This should have a value of "01" in it. Also you lot should take a file called "openssl.cnf" Y'all demand to create a file called "index.txt" besides Too you may need to export the SSL directory for example as below: export SSLDIR=/etc/ssl |
n00b
Joined: 08 December 2010
Posts: 60
Posted: Wednesday February 16, 2011 ix:52 pm Postal service discipline: | |
| |
sorry, i`m relatively new.... I`t trying to do this in /etc/postfix!! Where do i notice these files? The index.txt file only take to exist? and the ssl directory in my case equally: Thanks... |
Guru
Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom
Posted: Wed February 16, 2011 9:59 pm Post subject: | |
| |
Try the following commands as root: cd /etc/postfix /etc/ssl/misc/CA.pl -newca openssl req -new -nodes -subj '/CN=demo/O=demo/C=IE/ST=demo/L=demo/emailAddress=demo' -keyout FOO-fundamental.pem -out FOO-req.pem -days 3650 openssl ca -out FOO-cert.pem -infiles FOO-req.pem cp demoCA/cacert.pem . chmod 644 /etc/postfix/FOO-cert.pem /etc/postfix/cacert.pem |
n00b
Joined: 08 Dec 2010
Posts: 60
Posted: Thu Feb 17, 2011 vii:38 pm Post subject: | |||||
| |||||
I have done the following equally root: # cd /etc/postfix after the concluding command was the post-obit error:
With which command is the file named cakey.pem created? Because I have read the config-file /etc/ssl/openssl.cnf and it looks good simply that does not necessarily mean that it is so!! /etc/ssl/openssl.cnf:
And the file exists in said path!! |
Guru
Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom
Posted: Fri February xviii, 2011 nine:27 am Postal service field of study: | |||
| |||
cakey.pem is created with the first control this is the output y'all should receive as below. gen-vm postfix # ls -altr demoCA/individual/cakey.pem Making CA document ... Please enter the following 'actress' attributes X509v3 Bones Constraints: Write out database with 1 new entries |
n00b
Joined: 08 Dec 2010
Posts: 60
Posted: Fri Feb 18, 2011 4:eleven pm Post subject: | |
| |
hm, I haven`t prepare the ssl dir!! Furthemore I have no output after the command!! (17:10:56) gero postfix # /etc/ssl/misc/CA.pl -newca |
Guru
Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom
Posted: Fri Feb 18, 2011 iv:39 pm Post subject field: | |
| |
This is curious! what is the output of: Did you lot accidently delete this file or files? Try re emerging openssl emerge -va openssl |
n00b
Joined: 08 December 2010
Posts: 60
Posted: Fri Feb 18, 2011 6:32 pm Mail subject: | |||||
| |||||
(19:30:56) gero ~ # locate CA.pl /etc/ssl/misc/CA.pl /usr/share/human being/man1/openssl-CA.pl.1ssl.bz2 /usr/share/homo/man1/ssl-CA.pl.1ssl.bz2 reemerging openssl as follows:
Then I take deleted the file ./demoCA/private/cakey.pem (20:14:56) gero private # cd /etc/postfix/
Last edited by arkas on Fri Feb 18, 2011 8:17 pm; edited 1 time in total |
Guru
Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom
n00b
Joined: 08 Dec 2010
Posts: 60
Guru
Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom
n00b
Joined: 08 Dec 2010
Posts: lx
Posted: Fri Feb xviii, 2011 eight:eleven pm Post subject: | |
| |
ok... Practise I take to think this pass phrase? |
Guru
Joined: 01 October 2010
Posts: 542
Location: The Kingdom
n00b
Joined: 08 Dec 2010
Posts: threescore
Posted: Fri Feb 18, 2011 viii:33 pm Post bailiwick: | |
| |
I'm distressing, I did not know much about when it comes to this subject. I only want to learn some things!! In any instance, I thanks a lot! |
Guru
Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom
Posted: Fri Feb 18, 2011 9:23 pm Post subject: | |
| |
@arkas No problem. "The mean solar day that one thinks they know it all is the twenty-four hours after 1 should take died". I tip for time to come is to mail all of the error message from the offset of the post, this saves fourth dimension for everyone. Please marking this thread solved. If y'all demand a total postfix How To allow me know. |
n00b
Joined: 18 Mar 2015
Posts: 1
Posted: Wed Mar 18, 2015 6:05 pm Postal service subject: Problem generating Document because phassphrase was in bl | |
| |
I had a problem with my certificate because I left passphrase in blank, so then I could non generate some other certificate or open up the current one I tried deleting the cakey.pem from your $dir/CA/private Starting time at all check your openssl.cnf in CentOs is in /etc/pki/tls/openssl.cnf. Check the value dir=xxxxxxx Enter in $dir (example: /etc/pki/CA) and discover /private At present, everything should going back to normally. Try to generate your Document over again (example: $/etc/pki/tls/misc/CA -newca) and That'south it!!! Good luck and I hope this mail service volition be helpful! |
Display posts from previous:
worrellquithethand.blogspot.com
Source: https://forums.gentoo.org/viewtopic-p-7718762.html
0 Response to "Can't Open Ssl/openssl.cnf for Reading, No Such File or Directory"
Post a Comment