Fedora Linux Support Community & Resources Center
  #1  
Old 31st October 2005, 04:37 PM
FenrisWolf's Avatar
FenrisWolf Offline
Registered User
 
Join Date: Oct 2005
Posts: 4
Question SSL Certificate Problem

Hi All,

I am having a great deal of trouble activitating SSL on an Apache 2.0 installation with FC4. I have created and self-signed a certificate and private key as this is only for a small academic group, but I cannot get the httpd daemon to start up. The ssl.conf file is pointing to the correct path /etc/pki/... and so forth for both the key and the cert files and the httpd.conf file is loading the ssl.conf file as well. The error I get is:

"Server should be SSL-aware but has no certificate configured"

in the httpd error log. I can't figure out what I may have missed. Any suggestions?
Reply With Quote
  #2  
Old 1st November 2005, 07:32 AM
gavinw6662 Offline
Registered User
 
Join Date: Feb 2005
Age: 34
Posts: 1,281
how about providing us with your apache configuration file so that we can have a look at it.
__________________
I read your e-mail
Reply With Quote
  #3  
Old 1st November 2005, 03:21 PM
FenrisWolf's Avatar
FenrisWolf Offline
Registered User
 
Join Date: Oct 2005
Posts: 4
Hi All,

Sorry. Forgot to post the conf files. Some changes were made for security. If you see <me> that is replaced by my user name on the system and <server> is replaced by the server name. Some more background:

We need Apache running as a specific user to instigate a python script which runs a command-line argument as a given user. Each user on the system is assigned a port to log into and authenticate, mine is port 8001. There may be better ways to do this, but this is what I got working with my Apache books.

Thanks again for any help.
Attached Files
File Type: conf httpd.conf (32.4 KB, 68 views)
File Type: conf ssl.conf (9.6 KB, 91 views)
Reply With Quote
  #4  
Old 1st November 2005, 04:08 PM
felixs Offline
Registered User
 
Join Date: Jun 2004
Posts: 35
Did you verify that your private key is not password protected?

fs

Btw: I recommend using certificates from CAcert if you don't buy one from a commercial entity as they have several advantages over self-signed certs.
Reply With Quote
  #5  
Old 1st November 2005, 04:32 PM
FenrisWolf's Avatar
FenrisWolf Offline
Registered User
 
Join Date: Oct 2005
Posts: 4
I think so. I did not provide a password when I created the certificate. I used the CA scripts in Apache to create the certificate and key. The permissions all check as well.
Reply With Quote
  #6  
Old 2nd November 2005, 07:45 AM
gavinw6662 Offline
Registered User
 
Join Date: Feb 2005
Age: 34
Posts: 1,281
it might be that you created the certificate, but the original 'dummy' one is still on your system. I ran into some conflicts using the "redhat" cert method for sendmail. Basically there was a generic ssl cert already there that was conflicting with the one i made.
__________________
I read your e-mail
Reply With Quote
  #7  
Old 2nd November 2005, 12:56 PM
raoul Offline
Registered User
 
Join Date: Sep 2005
Location: Hellas
Posts: 126
Has the user that starts the apache daemon (not the one specified in httpd.conf) read-access on the certificate and key? If root starts apache, then ignore my question.
Reply With Quote
  #8  
Old 2nd November 2005, 03:31 PM
FenrisWolf's Avatar
FenrisWolf Offline
Registered User
 
Join Date: Oct 2005
Posts: 4
I moved the "dummy key" and the localhost key and cert to a different directory. Still have the same error. And the user running apache has read permissions on both the key and cert file.

Last edited by FenrisWolf; 2nd November 2005 at 08:20 PM. Reason: Updated task.
Reply With Quote
  #9  
Old 3rd November 2005, 04:54 PM
tw56 Offline
Registered User
 
Join Date: Oct 2005
Location: GA, USA
Posts: 311
I think I remember that when I made mine I renamed the dummy keys to whatever.therenamewas.original before making the new ones. Or to be more plain added .origanal on the end.
Reply With Quote
  #10  
Old 27th April 2006, 08:53 PM
Bone's Avatar
Bone Offline
Registered User
 
Join Date: Nov 2005
Posts: 63
look at the line that states...
# LoadModule ssl_module modules/mod_ssl.so

I believe you need to uncomment it, your server is not ssl enabled. If that does not work you may want to rebuild Apache in such a way that loads the ssl module during the build.

example:

./configure --prefix=/etc/httpd/ --enable-speling=shared
make
make install
/etc/httpd/apachectl start
Reply With Quote
  #11  
Old 27th April 2006, 11:58 PM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,305
Maybe this will help. here's a working SSL virt host config. You still need a to uncomment the ssl module.

Code:
<VirtualHost _default_:443>
    DocumentRoot "/usr/apache/htdocs"
    ServerName web1.brunson.com:443
    ServerAdmin support@brunson.com
    ErrorLog logs/error_log
    TransferLog logs/access_log

    SSLEngine on
    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
    SSLCertificateFile /usr/apache/conf/ssl.crt/labs.brunsont.com.crt
    SSLCertificateKeyFile /usr/apache/conf/ssl.key/labs.brunson.com.key

</VirtualHost>
And this is in the main config file:
Code:
<IfDefine SSL>
Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl
SSLPassPhraseDialog  builtin
SSLSessionCache         dbm:logs/ssl_scache
SSLSessionCacheTimeout  300
SSLMutex  file:logs/ssl_mutex
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfDefine>
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
Reply With Quote
Reply

Tags
certificate, problem, ssl

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F11 certificate problem Yerevanski Servers & Networking 7 16th October 2009 11:47 AM
F11 certificate problem Yerevanski Using Fedora 2 15th October 2009 01:00 PM
Server certificate verification error: unable to get local issuer certificate James Board Using Fedora 0 4th September 2008 12:42 AM
Certificate problem in Radius with PEAP Daniao Servers & Networking 2 28th April 2005 04:30 PM
Certificate problem in Radius with PEAP Daniao Servers & Networking 0 18th January 2005 07:39 PM


Current GMT-time: 03:49 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat