Problem when I add ssl

Started by mekosaad, March 24, 2015, 09:08:32 AM

Previous topic - Next topic

mekosaad

First thing shows me

# vhost_start site.com
<Virtualsite 11.111.111.111:443>
ServerName site.com
ServerAlias www.site.com
DocumentRoot /home/site/public_html
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/site.com.cert
SSLCertificateKeyFile /etc/pki/tls/private/site.com.key
SSLCertificateChainFile /etc/pki/tls/certs/site.com.bundle
<IfModule mod_suexec.c>
    SuexecUserGroup site site
</IfModule>

<IfModule mod_suphp.c>
    suPHP_UserGroup host site
    suPHP_ConfigPath /home/site
</IfModule>

<Directory "/home/site/public_html">
    AllowOverride All
</Directory>
</VirtualHost>
# vhost_end site.com


SUCCESS! SSL Certificate for domain site.com installed in: /usr/local/apache/conf.d/vhosts-ssl.conf !
SUCCESS! SSL Certificate added to CWP configuration file


And stops Apache

Stopping httpd: [  OK  ]
Starting httpd: Syntax error on line 34 of /usr/local/apache/conf.d/vhosts-ssl.conf:
SSLCertificateFile: file '/etc/pki/tls/certs/site.com.cert' does not exist or is empty
[FAILED

https works without a problem you do through checking this site
https://www.sslshopper.com/ssl-checker.html

sokki

that file is empty

you need to edit that file and add your certificate key in

mekosaad

#2
Already this file does not exist, but where you bring him  :-[

When I enter the
Location of Certificate files /etc/pki/tls/certs/

This problem appears

Deprecated: Function ereg() is deprecated in /usr/local/cwpsrv/htdocs/resources/admin/modules/file_manager.php(1) : eval()'d code(1) : eval()'d code on line 212
/etc/pki/tls/certs/111111.com.crt

sokki

are you using purchase ssl or self signed?



brijendrasial

Why dont you redo whole process again?

mekosaad

Quote from: BullTen on March 24, 2015, 02:24:36 PM
Why dont you redo whole process again?

I do not understand I'm bad in the English

Administrator

try by generating a new SSL and installing it

mekosaad

#8
I've created a new key ssl
But again Apache stop

Stopping httpd: [  OK  ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using Server.111111.com for ServerName
[Tue Mar 24 18:17:07 2015] [warn] NameVirtualHost 11.22.33.44:80 has no VirtualHosts
[FAILED]


How do I turn Port ssl with Apache ???

brijendrasial

I dont think this error is related to ssl.

mekosaad

Quote from: BullTen on March 24, 2015, 06:27:49 PM
I dont think this error is related to ssl.

When I delete ssl for this site is working again Apache

brijendrasial

Can you please explain how you are generating and signing certificate?

mekosaad

#12
Quote from: BullTen on March 24, 2015, 07:06:39 PM
Can you please explain how you are generating and signing certificate?

First you make a ssl certificate from SSL Generator
Second, download the file that was sent by the company comodo 11111_com.crt
To this place /etc/pki/tls/certs
Third, you have to enter this SSL Certs Manager
Also when I enter Location of Certificate files /etc/pki/tls/certs/
There data are is not empty like every time

brijendrasial

Now I am actually getting what issue you have. There is some bug in ssl generation process. Give me sometime I will try to explain you another way of adding ssl if possible.

brijendrasial

delete everything from this file: /usr/local/apache/conf.d/vhosts-ssl.conf

/etc/pki/tls/certs
delete your domain certificates files from here .crt,.cert,.bundle

/etc/pki/tls/private
delete your domain key file

Goto ssl generator fillin the entries and at the bottom also tick generate self signed certificate. Now generate ssl

Now this will generate csr, crt and key file.

Now you can goto ssl cert manager and complete rest of the process.