LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-29-2016, 07:42 AM   #1
dushyantg
Member
 
Registered: Jun 2016
Posts: 70

Rep: Reputation: Disabled
ssl configuration issue


Hi,

trying to configure ssl on centos 7, i have generated certificate,csr file and a key file for it. also configured their path in httpd.conf while I restart the httpd service it gives me error


Quote:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
 
Old 06-29-2016, 08:24 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by dushyantg View Post
Hi,
trying to configure ssl on centos 7, i have generated certificate,csr file and a key file for it. also configured their path in httpd.conf while I restart the httpd service it gives me error
Code:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
Ok...so did you DO those things? Look in the logs? Obviously there's a problem in the part of the configuration you changed, but you don't post it, or any parts of the logs, or any diagnostic information. We can't guess.

Run the commands the system gave you, and post the relevant information, and we can try to help.
 
Old 06-29-2016, 08:30 AM   #3
dushyantg
Member
 
Registered: Jun 2016
Posts: 70

Original Poster
Rep: Reputation: Disabled
below result which i got

Quote:
Jun 29 07:32:35 myserver.com dbus-daemon[698]: dbus[698]: [system] Activated service 'org.fedoraproject.Setroubleshootd' failed: The permission of the setuid help
Jun 29 07:32:35 myserver.com unix_chkpwd[19564]: password check failed for user (root)
Jun 29 07:32:35 myserver.com sshd[19536]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
Jun 29 07:32:36 myserver.com dbus[698]: [system] Activating service name='org.fedoraproject.Setroubleshootd' (using servicehelper)
Jun 29 07:32:36 myserver.com dbus-daemon[698]: dbus[698]: [system] Activating service name='org.fedoraproject.Setroubleshootd' (using servicehelper)
Jun 29 07:32:36 myserver.com dbus[698]: [system] Activated service 'org.fedoraproject.Setroubleshootd' failed: The permission of the setuid helper is not correct
Jun 29 07:32:36 myserver.com dbus-daemon[698]: dbus[698]: [system] Activated service 'org.fedoraproject.Setroubleshootd' failed: The permission of the setuid help
Jun 29 07:32:36 myserver.com unix_chkpwd[19567]: password check failed for user (root)
Jun 29 07:32:36 myserver.com sshd[19521]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
Jun 29 07:32:36 myserver.com sshd[19520]: Failed password for root from 116.31.116.36 port 25326 ssh2
Jun 29 07:32:36 myserver.com sshd[19520]: Received disconnect from 116.31.116.36: 11: [preauth]
Jun 29 07:32:36 myserver.com sshd[19520]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.31.116.36 user=root
Jun 29 07:32:37 myserver.com sshd[19536]: Failed password for root from 218.65.30.23 port 33650 ssh2
Jun 29 07:32:38 myserver.com sshd[19521]: Failed password for root from 218.65.30.23 port 51711 ssh2
Jun 29 07:32:38 myserver.com sshd[19521]: Disconnecting: Too many authentication failures for root [preauth]
Jun 29 07:32:38 myserver.com sshd[19521]: PAM 5 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=218.65.30.23 user=root
Jun 29 07:32:38 myserver.com sshd[19521]: PAM service(sshd) ignoring max retries; 6 > 3
Jun 29 07:32:38 myserver.com dbus[698]: [system] Activating service name='org.fedoraproject.Setroubleshootd' (using servicehelper)
Jun 29 07:32:38 myserver.com dbus-daemon[698]: dbus[698]: [system] Activating service name='org.fedoraproject.Setroubleshootd' (using servicehelper)
Jun 29 07:32:38 myserver.com dbus[698]: [system] Activated service 'org.fedoraproject.Setroubleshootd' failed: The permission of the setuid helper is not correct
Jun 29 07:32:38 myserver.com dbus-daemon[698]: dbus[698]: [system] Activated service 'org.fedoraproject.Setroubleshootd' failed: The permission of the setuid help
Jun 29 07:32:38 myserver.com unix_chkpwd[19572]: password check failed for user (root)
Jun 29 07:32:38 myserver.com sshd[19536]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
 
Old 06-29-2016, 08:39 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by dushyantg View Post
below result which i got
And AGAIN...post the RELEVANT parts of the log. That says NOTHING about when you start HTTP, does it???? Try starting the service again, and get the last parts of the file...have you tried reading the man pages on journalctl?

For example, if you try to start http at 9:10 AM, you can see log entries SINCE 9 AM by running:
Code:
journalctl --since 09:00
AGAIN...we only need to see the RELEVANT PARTS that relate to the HTTP service. And again, can you show us what you modified in the config files?? Have you tried undoing those changes, and starting the service then?
 
Old 06-29-2016, 10:28 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
If the service failed to start at all, it's probably due to a tpyo! A syntax-error in the config file itself.

Try running sshd from the command-line. It should fail with a useful message.
 
Old 06-30-2016, 12:57 AM   #6
Elizine
Member
 
Registered: Aug 2015
Posts: 54
Blog Entries: 1

Rep: Reputation: Disabled
SSL configuration issue

I also faced the same issue which was caused by SELinux. I had it set to Permissive to troubleshoot another issue I have here.

Since the log dir was created under /var/www, and no specific context rule exists for /var/www/mydomain.org, it will get the same context as /var/www, which is httpd_sys_content_t:

Code:
SELECT ALL
[root@server2 sites-enabled]# ls -Zd /var/www
drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 /var/www
The log file dir should have httpd_log_t context:
Code:
SELECT ALL
[root@server2 sites-enabled]# ls -Zd /var/log/httpd/
drwx------. root root system_u:object_r:httpd_log_t:s0 /var/log/httpd/

And the DocumentRoot /var/www/mydomain.org/htdocs should have httpd_sys_content_t.

So, to fix it:
Code:
SELECT ALL
semanage fcontext -a -t httpd_sys_content_t "/var/www/mydomain.org(/.*)?"
semanage fcontext -a -t httpd_log_t "/var/www/mydomain.org/.*\.log.*"
restorecon -R -v /var/www/mydomain.org

Also, I would create a separate log sub directory, to make the SELinux context less confusing.
 
1 members found this post helpful.
Old 07-01-2016, 04:16 AM   #7
dushyantg
Member
 
Registered: Jun 2016
Posts: 70

Original Poster
Rep: Reputation: Disabled
Smile

it was issue with certificate & key file, i have regenerated from my reseller and now its done.

Thanks for replies.

Last edited by dushyantg; 07-01-2016 at 04:17 AM.
 
Old 07-03-2016, 06:16 AM   #8
gexacor
LQ Newbie
 
Registered: Jul 2016
Posts: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by dushyantg View Post
it was issue with certificate & key file, i have regenerated from my reseller and now its done.

Thanks for replies.
And I was almost here to write about check your cert keys and permissions!
Glad that you figure that out yourself.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help on SSL configuration your_shadow03 Linux - Server 7 06-26-2014 03:33 AM
Apache configuration using SSL mpiramanayagam Linux - Newbie 2 10-24-2008 03:28 AM
OpenVPN SSL configuration izaakrach Linux - Networking 2 04-01-2008 03:35 PM
SSL Configuration for Fedora DS??? ajeetraina Linux - Server 2 12-31-2007 07:24 AM
Issue during the SSL Configuration???? ajeetraina Linux - Server 0 12-19-2007 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration