SSL Zen "Failed verification" missing cabundle.crt

Scratch that...I see....combined added.

2 Likes

Erroring out farther below....

fred@Fred-DME:/etc/apache2/sites-available$ sudo apachectl -k graceful
apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 8 of /etc/apache2/sites-enabled/fredcolclough.com.conf: without matching section
Action '-k graceful' failed.

2 Likes

I haven't changed apache2.conf file...

2 Likes

No. It's complaining about line 8 of the new file. The closing VirtualHost tag is on its own line, right?

3 Likes

Yes, it's a copy of yours... could it be newline? In VI it shows a blue 'M at end of each line.

2 Likes

Get rid of those. They're the silly carriage return (\r) characters I was referring to earlier. I'll bet you're doing this editing from a Windows 10 machine... :crystal_ball:

They look like this ^M right?

3 Likes

Yes, Win 10. Using Notepad, then filezilla to upload (w/ root for perms). OK.... that'll take some time, hang in there. :wink:

2 Likes

\r\n = Windows
\n = *nix
\r = Apple

3 Likes

Got rid of them...now it's back to failing as before (combined is there):


fred@Fred-DME:/etc/apache2/sites-available$ sudo vi fredcolclough.com.conf
fred@Fred-DME:/etc/apache2/sites-available$ sudo apachectl -k graceful
AH00526: Syntax error on line 14 of /etc/apache2/sites-enabled/fredcolclough.com.conf:
CustomLog takes two or three arguments, a file name, a custom log format string or format name, and an optional "env=" or "expr=" clause (see docs)
Action '-k graceful' failed.

2 Likes

Hang on.... might be typo.

2 Likes

Grrrr....what am I missing?

fred@Fred-DME:/etc/apache2/sites-available$ sudo apachectl -k graceful
AH00526: Syntax error on line 15 of /etc/apache2/sites-enabled/fredcolclough.com.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
Action '-k graceful' failed.
The Apache error log may have more information.
fred@Fred-DME:/etc/apache2/sites-available$

2 Likes

One moment... I think there's something else needed.

3 Likes

Here's the whole file again:

<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName www.fredcolclough.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certificate.crt
SSLCertificateKeyFile /etc/ssl/private/privatekey.pem
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
SSLHonorCipherOrder on
SSLCompression off
SSLOptions +StrictRequire
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i"" vhost_combined
LogFormat "%v %h %l %u %t "%r" %>s %b" vhost_common
Redirect permanent / https://fredcolclough.com/

<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName fredcolclough.com
DocumentRoot /var/www/html/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile
SSLCertificateKeyFile
SSLProtocol all -SSLv2 -SSLv3

2 Likes

Put this line right above the first <VirtualHost *:443> line:

<IfModule mod_ssl.c>

Put this line right below the last </VirtualHost> line (at the end of the file):

</IfModule>

I updated the text above accordingly.

3 Likes

So I am getting this:
443/tcp closed https

Port 80 and port 443 need to be accessible to the internet.
Fix this and you will move forward

6 Likes

Working on it... thx.

3 Likes

I'm away for a bit. Back later sometime. You should be getting very close.

2 Likes

He had no port 443 vHost. That's what we've been fixing.

2 Likes

@fredcolclough is working on the issue. Lets see the results.

5 Likes

The syntax errors are right near those SSLcert entries.... checking the syntax and the 'M's... might just start over and re-copy-paste.

2 Likes