LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-01-2013, 12:29 PM   #1
DeSouffle
Member
 
Registered: Aug 2012
Posts: 30

Rep: Reputation: Disabled
When I creat new subdomain my site give ssl error.


Hi,i had ssl configured.
i have dedicated server.i configured /usr/local/directadmin/data/user/user123/httpd.conf
but when i creat new subdomain ,then,refresing httpd.conf file (ssl place).

EXAMPLE ,in httpd.conf in OLD:


--------------------------------------
<VirtualHost MYIP:443 >

SSLEngine on
SSLCertificateFile /usr/local/directadmin/data/user/user123/server.crt
SSLCertificateKeyFile /usr/local/directadmin/data/user/user123/server.key
------------------------------------------------------
and i creat subdomain by DIRECTADMIN PANEL.

httpd.conf is NEW LOOK:

--------------------------------------
<VirtualHost MYIP:443 >

SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
------------------------------------------------------
PLEASE HELP ME
 
Old 10-01-2013, 01:59 PM   #2
ereus
LQ Newbie
 
Registered: Apr 2005
Distribution: debian, redhat
Posts: 10

Rep: Reputation: 0
...and the error is?... have you the log report?
may be you don't have the file in the correct directory... I don't know
 
Old 10-01-2013, 02:09 PM   #3
heinblöd
Member
 
Registered: May 2004
Location: France
Distribution: Slackware Gentoo
Posts: 186

Rep: Reputation: 31
Quote:
Originally Posted by DeSouffle View Post
When I creat new subdomain my site give ssl error
If you get a certificate warning in your browser when you open the subdomain, this warning is likely a valid warning and no ssl-configuration error .

If you have a certificate for www.example.com it is normally
not valid for subdomain.example.com

So a "page is not secure, ... " ssl-warning in your browser is Ok.

You would need a second certificate for subdomain.example.com or you need a so called 'wildcard' certificate to certify all subdomains of a domain.

Ask your ssl-certificate provider for details
 
Old 10-01-2013, 02:16 PM   #4
DeSouffle
Member
 
Registered: Aug 2012
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by heinblöd View Post
If you get a certificate warning in your browser when you open the subdomain, this warning is likely a valid warning and no ssl-configuration error .

If you have a certificate for www.example.com it is normally
not valid for subdomain.example.com

So a "page is not secure, ... " ssl-warning in your browser is Ok.

You would need a second certificate for subdomain.example.com or you need a so called 'wildcard' certificate to certify all subdomains of a domain.

Ask your ssl-certificate provider for details
I'm sorry. YES reaaly. But i said:
example: my domain is: www.test.com
https://www.test.com
then when i creat subdomain ,give ssl error my test.com domain.
i know,when i creat subdomain,subomain.test.com if no sertificate,yes really no works.
but why subdomain destroy my www.test.com domain sertificate path in my httpd.conf ?
why?
 
Old 10-01-2013, 02:33 PM   #5
heinblöd
Member
 
Registered: May 2004
Location: France
Distribution: Slackware Gentoo
Posts: 186

Rep: Reputation: 31
Most likely because Directadmin is misconfigured or not taking into account the correct path of your distro.

Many Hostingpanels only allow one Domain with a ssl-certificate.

If you just need to keep the settings for the main domain, why don't you correct the certificate path (SSLCertificateFile and SSLCertificateKeyFile) manually and then make the file readonly, so the Hostingpanel cannot change it anymore?
 
Old 10-01-2013, 03:07 PM   #6
DeSouffle
Member
 
Registered: Aug 2012
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by heinblöd View Post
Most likely because Directadmin is misconfigured or not taking into account the correct path of your distro.

Many Hostingpanels only allow one Domain with a ssl-certificate.

If you just need to keep the settings for the main domain, why don't you correct the certificate path (SSLCertificateFile and SSLCertificateKeyFile) manually and then make the file readonly, so the Hostingpanel cannot change it anymore?
aha ok thankss very nice think ) thanksss
 
Old 10-01-2013, 05:09 PM   #7
heinblöd
Member
 
Registered: May 2004
Location: France
Distribution: Slackware Gentoo
Posts: 186

Rep: Reputation: 31
no problem, I hope it works
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: cPanel: SSL on subdomain howto LXer Syndicated Linux News 0 03-01-2012 12:30 PM
Setup sample SSL subdomain site but keeps going to www j.smith1981 Linux - Server 14 02-03-2012 06:14 AM
SSL and subdomain problem Wim Sturkenboom Linux - Server 3 07-02-2007 07:33 AM
Give 404 error on nonexistent subdomain keyF Linux - Software 2 09-07-2006 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:26 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