RT SSL Errors - Please if anyone can help -

I am trying to get RT 3.4.4 on SSL.
It works perfect on normal http but when I change to
HTTPS I get ‘You’re almost there!’

Here is what I change -

/opt/rt3/etc/RT_SiteConfig.pm

From Set($WebBaseURL, “http://server1.com”);
to Set($WebBaseURL, “https://server1.com”);

/etc/httpd/conf/httpd.conf

From NameVirtualHost *:80
To NameVirtualHost *:443

From
<VirtualHost *:80>
ServerName server1.com
ServerAdmin mail@server1.com
DocumentRoot /opt/rt3/share/html/
AddHandler fastcgi-script .fcgi
#DirectoryIndex index.html
AddDefaultCharset UTF-8
Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images
PerlRequire /opt/rt3/bin/webmux.pl
<Directory “/opt/rt3/share/html”>
Options FollowSymLinks ExecCGI
AllowOverride None


SetHandler perl-script
PerlHandler RT::Mason

To
<VirtualHost *:443>
ServerName server1.com
ServerAdmin mail@server1.com
DocumentRoot /opt/rt3/share/html/
AddHandler fastcgi-script .fcgi
#DirectoryIndex index.html
AddDefaultCharset UTF-8
Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images
PerlRequire /opt/rt3/bin/webmux.pl
<Directory “/opt/rt3/share/html”>
Options FollowSymLinks ExecCGI
AllowOverride None


SetHandler perl-script
PerlHandler RT::Mason

From Firefox when I visit
https://server1.com/Admin/index.html I get this.

%# BEGIN BPS TAGGED BLOCK {{{ %# %# COPYRIGHT: %# %#
This software is Copyright (c) 1996-2005 Best
Practical Solutions, LLC %# %# %# (Except where
explicitly superseded by other copyright notices), %#
%# %# LICENSE: %# %# This work is made available to
you under the terms of Version 2 of %# the GNU General
Public License. A copy of that license should have %#
been provided with this software, but in any event can
be snarfed %# from www.gnu.org. %# %# This work is
distributed in the hope that it will be useful, but %#
WITHOUT ANY WARRANTY; without even the implied
warranty of %# MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU %# General Public
License for more details. %# %# You should have
received a copy of the GNU General Public License %#
along with this program; if not, write to the Free
Software %# Foundation, Inc., 675 Mass Ave, Cambridge,
MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION
POLICY: %# %# (The following paragraph is not intended
to limit the rights granted %# to you to modify and
distribute this software under the terms of %# the GNU
General Public License and is only of importance to
you if %# you choose to contribute your changes and
enhancements to the %# community by submitting them to
Best Practical Solutions, LLC.), %# %# By
intentionally submitting any modifications,
corrections or %# derivatives to this work, or any
other work intended for use with %# Request Tracker,
to Best Practical Solutions, LLC, you confirm that %#
you are the copyright holder for those contributions
and you grant %# Best Practical Solutions, LLC a
nonexclusive, worldwide, irrevocable, %# royalty-free,
perpetual, license to use, copy, create derivative %#
works based on those contributions, and sublicense and
distribute %# those contributions and any derivatives
thereof. %# %# END BPS TAGGED BLOCK }}} <&
/Admin/Elements/Header, Title => loc(‘RT
Administration’) &> <& /Admin/Elements/Tabs, Title =>
loc(‘RT Administration’) &>

* % foreach my $key (sort keys %$tabs) {

<%$tabs->{$key} ->{‘title’}%>
<%$tabs->{$key}->{description}%>
%}

<%init> my $tabs = { A => { title => loc(‘Users’),
path => ‘Admin/Users/index.html’, description =>
loc(‘Manage users and passwords’), }, B => { title =>
loc(‘Groups’), path => ‘Admin/Groups/index.html’,
description => loc(‘Manage groups and group
membership’), }, C => { title => loc(‘Queues’), path
=> ‘Admin/Queues/index.html’, description =>
loc(‘Manage queues and queue-specific properties’), },
D => { ‘title’ => loc(‘Custom Fields’), description =>
loc(‘Manage custom fields and custom field values’),
path => ‘Admin/CustomFields/index.html’, }, E => {
‘title’ => loc(‘Global’), path =>
‘Admin/Global/index.html’, description => loc(‘Manage
properties and configuration which apply to all
queues’), }, F => { ‘title’ => loc(‘Tools’), path =>
‘Admin/Tools/index.html’, description => loc(‘Use
other RT administrative tools’) }, };
$m->comp(‘/Elements/Callback’, tabs => $tabs, %ARGS);

If I change the 443 back to 80 and the https to http
it’s perfect.

httpd-2.0.52-32.2.en
mod_perl-2.0.1-1.fc4t

php -v
PHP 4.3.9 (cgi) (built: May 4 2007 11:04:14)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend
Technologies

perl -v

This is perl, v5.8.6 built for i386-linux-thread-multi

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the
Artistic License or the
GNU General Public License, which may be found in the
Perl 5 source kit.

Complete documentation for Perl, including FAQ lists,
should be found on
this system using man perl' or perldoc perl’. If
you have access to the
Internet, point your browser at http://www.perl.org/,
the Perl Home Page.

Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings,

This is what I just set up and is working for me:

ServerName foo.bar
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/server.crt
SSLCertificateKeyFile /etc/pki/tls/private/server.key

RewriteEngine On
RewriteCond   %{SERVER_PORT}  !^443$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]

DocumentRoot /usr/local/rt3/share/html
AddDefaultCharset UTF-8

PerlModule Apache::DBI
PerlRequire /usr/local/rt3/bin/webmux.pl


<Location />
 SetHandler perl-script
 PerlHandler RT::Mason
</Location>

Phanoko wrote:

I am trying to get RT 3.4.4 on SSL.
It works perfect on normal http but when I change to
HTTPS I get ‘You’re almost there!’

Here is what I change -

/opt/rt3/etc/RT_SiteConfig.pm

From Set($WebBaseURL, “http://server1.com”);
to Set($WebBaseURL, “https://server1.com”);


/etc/httpd/conf/httpd.conf

From NameVirtualHost *:80
To NameVirtualHost *:443

From
<VirtualHost *:80>
ServerName server1.com
ServerAdmin mail@server1.com
DocumentRoot /opt/rt3/share/html/
AddHandler fastcgi-script .fcgi
#DirectoryIndex index.html
AddDefaultCharset UTF-8
Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images
PerlRequire /opt/rt3/bin/webmux.pl
<Directory “/opt/rt3/share/html”>
Options FollowSymLinks ExecCGI
AllowOverride None


SetHandler perl-script
PerlHandler RT::Mason

To
<VirtualHost *:443>
ServerName server1.com
ServerAdmin mail@server1.com
DocumentRoot /opt/rt3/share/html/
AddHandler fastcgi-script .fcgi
#DirectoryIndex index.html
AddDefaultCharset UTF-8
Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images
PerlRequire /opt/rt3/bin/webmux.pl
<Directory “/opt/rt3/share/html”>
Options FollowSymLinks ExecCGI
AllowOverride None


SetHandler perl-script
PerlHandler RT::Mason


From Firefox when I visit
https://server1.com/Admin/index.html I get this.

%# BEGIN BPS TAGGED BLOCK {{{ %# %# COPYRIGHT: %# %#
This software is Copyright (c) 1996-2005 Best
Practical Solutions, LLC %# %# %# (Except where
explicitly superseded by other copyright notices), %#
%# %# LICENSE: %# %# This work is made available to
you under the terms of Version 2 of %# the GNU General
Public License. A copy of that license should have %#
been provided with this software, but in any event can
be snarfed %# from www.gnu.org. %# %# This work is
distributed in the hope that it will be useful, but %#
WITHOUT ANY WARRANTY; without even the implied
warranty of %# MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU %# General Public
License for more details. %# %# You should have
received a copy of the GNU General Public License %#
along with this program; if not, write to the Free
Software %# Foundation, Inc., 675 Mass Ave, Cambridge,
MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION
POLICY: %# %# (The following paragraph is not intended
to limit the rights granted %# to you to modify and
distribute this software under the terms of %# the GNU
General Public License and is only of importance to
you if %# you choose to contribute your changes and
enhancements to the %# community by submitting them to
Best Practical Solutions, LLC.), %# %# By
intentionally submitting any modifications,
corrections or %# derivatives to this work, or any
other work intended for use with %# Request Tracker,
to Best Practical Solutions, LLC, you confirm that %#
you are the copyright holder for those contributions
and you grant %# Best Practical Solutions, LLC a
nonexclusive, worldwide, irrevocable, %# royalty-free,
perpetual, license to use, copy, create derivative %#
works based on those contributions, and sublicense and
distribute %# those contributions and any derivatives
thereof. %# %# END BPS TAGGED BLOCK }}} <&
/Admin/Elements/Header, Title => loc(‘RT
Administration’) &> <& /Admin/Elements/Tabs, Title =>
loc(‘RT Administration’) &>

* % foreach my $key (sort keys %$tabs) {

<%$tabs->{$key} ->{‘title’}%>
<%$tabs->{$key}->{description}%>
%}

<%init> my $tabs = { A => { title => loc(‘Users’),
path => ‘Admin/Users/index.html’, description =>
loc(‘Manage users and passwords’), }, B => { title =>
loc(‘Groups’), path => ‘Admin/Groups/index.html’,
description => loc(‘Manage groups and group
membership’), }, C => { title => loc(‘Queues’), path
=> ‘Admin/Queues/index.html’, description =>
loc(‘Manage queues and queue-specific properties’), },
D => { ‘title’ => loc(‘Custom Fields’), description =>
loc(‘Manage custom fields and custom field values’),
path => ‘Admin/CustomFields/index.html’, }, E => {
‘title’ => loc(‘Global’), path =>
‘Admin/Global/index.html’, description => loc(‘Manage
properties and configuration which apply to all
queues’), }, F => { ‘title’ => loc(‘Tools’), path =>
‘Admin/Tools/index.html’, description => loc(‘Use
other RT administrative tools’) }, };
$m->comp(‘/Elements/Callback’, tabs => $tabs, %ARGS);


If I change the 443 back to 80 and the https to http
it’s perfect.

httpd-2.0.52-32.2.en
mod_perl-2.0.1-1.fc4t

php -v
PHP 4.3.9 (cgi) (built: May 4 2007 11:04:14)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend
Technologies

perl -v

This is perl, v5.8.6 built for i386-linux-thread-multi

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the
Artistic License or the
GNU General Public License, which may be found in the
Perl 5 source kit.

Complete documentation for Perl, including FAQ lists,
should be found on
this system using man perl' or perldoc perl’. If
you have access to the
Internet, point your browser at http://www.perl.org/,
the Perl Home Page.


Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.6.2 (Build 2014)
Charset: ISO-8859-1

wj8DBQFGlpYiBB3D6kCa6qsRAnTbAJ4nTdzrcsqLrNoypyVUwojiHaToIACfY4PA
P9lGb9Mz+wIg89chgYH7pbg=
=3tRY
-----END PGP SIGNATURE-----