server cert CN not match server name

This is a discussion on server cert CN not match server name within the Apache forums in Application Servers & Tools category; Hi, I've tried to connect to connect to application via apache using https on my local machine-> https://localhost/ra But I get the following error below, and not sure where this RSA server cert comes from since I've never generated a rsa server cert: [Wed Apr 04 19:51:09 2007] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' does NOT match server name!? [Wed Apr 04 19:51:19 2007] [error] [client 127.0.0.1] script not found or unable to stat: /var/www/cgi-bin/ra Since I'm not using tomcat to serve up the apache communication do I need to specify "mod_jk" in the httpd.conf file ? Below is ...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 04-04-2007, 11:20 PM
Jana Nguyen
Guest
 
Default server cert CN not match server name

Hi,

I've tried to connect to connect to application via apache using https
on my local machine-> https://localhost/ra

But I get the following error below, and not sure where this RSA
server cert comes from since I've never generated a rsa server cert:

[Wed Apr 04 19:51:09 2007] [warn] RSA server certificate CommonName
(CN) `localhost.localdomain' does NOT match server name!?
[Wed Apr 04 19:51:19 2007] [error] [client 127.0.0.1] script not found
or unable to stat: /var/www/cgi-bin/ra

Since I'm not using tomcat to serve up the apache communication do I
need to specify "mod_jk" in the httpd.conf file ? Below is my
httpd.conf file:

# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
Listen 80

# RA Aliases
Alias /ra /usr/local/openra/httpd/htdocs/ra/
Alias /pub /usr/local/openra/httpd/htdocs/pub/
Alias /ra-node /usr/local/openra/httpd/htdocs/ra-node/
ScriptAlias /cgi-bin/ra/ /usr/local/openra/httpd/cgi-bin/ra/
ScriptAlias /cgi-bin/pub/ /usr/local/openra/httpd/cgi-bin/pub/
ScriptAlias /cgi-bin/ra-node/ /usr/local/openra/httpd/cgi-bin/ra-node/

<Directory "/usr/local/openra/httpd/cgi-bin/">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
<Directory "/usr/local/openra/httpd/htdocs/">
AllowOverride None
Options FollowSymLinks Indexes
Order allow,deny
Allow from all
</Directory>
# adding dir to symlinks following for cert retrieval
# not totally clear WHY openca puts a symlink here, but it did.
<Directory "/usr/local/openra/httpd/cgi-bin/pub">
AllowOverride None
Options FollowSymLinks Indexes
Order allow,deny
Allow from all
</Directory>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Reply With Quote
  #2  
Old 04-06-2007, 08:21 AM
paul
Guest
 
Default Re: server cert CN not match server name

Jana Nguyen schrieb:
> Hi,
>
> I've tried to connect to connect to application via apache using https
> on my local machine-> https://localhost/ra
>
> But I get the following error below, and not sure where this RSA
> server cert comes from since I've never generated a rsa server cert:
>
> [Wed Apr 04 19:51:09 2007] [warn] RSA server certificate CommonName
> (CN) `localhost.localdomain' does NOT match server name!?
> [Wed Apr 04 19:51:19 2007] [error] [client 127.0.0.1] script not found
> or unable to stat: /var/www/cgi-bin/ra

If my crystal ball serves me right you have configured a http virtual
host below, not https. The https configuration seems unchanged and uses
the default certificate installed by mod_ssl and the default
DocumentRoot /var/www/. You're probably missing something like:

<VirtualHost *:443>
ServerName localhost
....
...more stuff...
</VirtualHost>

To make the warning about the CN mismatch go away either change your
hostname to resolve to localhost.localdomain OR generate a new
certificate for the server wich matches your hostname.

cheers
Paul


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:42 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.