Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member beddo's Avatar
    Join Date
    Jan 2007
    Location
    England
    Posts
    145
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default exim.crt & key don't exist?

    Hi,
    I've noticed in my cpup and other that this gets logged:

    ...chown: /etc/exim.crt: No such file or directory
    chown: /etc/exim.key: No such file or directory

    Now everything seems to be working with exim so is this a configuration difference with cpanel and exim using different directories hence causing the cpanel error? If so can anyone give me a pointed as to what to change to make them agree?

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    The keys have been moved recently with symlinks to them in /etc:
    Code:
    lrwxrwxrwx    1 mailnull mail           29 Apr  6 10:23 /etc/exim.crt -> /var/cpanel/ssl/exim/exim.crt
    lrwxrwxrwx    1 mailnull mail           29 Apr  6 10:23 /etc/exim.key -> /var/cpanel/ssl/exim/exim.key
    Running /scripts/eximup --force ought to rectify the issue. If there was a problem, it's only likelt to be with SMTP over TLS (ssmtp)
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Quote Originally Posted by chirpy View Post
    The keys have been moved recently with symlinks to them in /etc:
    Code:
    lrwxrwxrwx    1 mailnull mail           29 Apr  6 10:23 /etc/exim.crt -> /var/cpanel/ssl/exim/exim.crt
    lrwxrwxrwx    1 mailnull mail           29 Apr  6 10:23 /etc/exim.key -> /var/cpanel/ssl/exim/exim.key
    Running /scripts/eximup --force ought to rectify the issue. If there was a problem, it's only likelt to be with SMTP over TLS (ssmtp)
    Any fix for that problem that you know of Jonathan? I have a couple users that like to send over SSL. Key/CRT files in place, links are there, permissions I would think look fine, yet still getting this error:

    [qoute]TLS error on connection from [192.168.1.1]:2439 (SSL_CTX_use_certificate_chain_file file=/etc/exim.crt): error:0200100D:system library:fopen:Permission denied[/quote]

    Have run /scripts/eximup couple times, restarted exim, courier-imap, cpanel, my lawn mower and jeep. Still no go. (Desperation move with the jeep, I know...)
    Darren Benfer | SS-Darren | AIM: serversphere
    www.serversphere.com
    Dedicated Server Solutions Have Come Full Circle

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by serversphere View Post
    Any fix for that problem that you know of Jonathan? I have a couple users that like to send over SSL. Key/CRT files in place, links are there, permissions I would think look fine, yet still getting this error:

    [qoute]TLS error on connection from [192.168.1.1]:2439 (SSL_CTX_use_certificate_chain_file file=/etc/exim.crt): error:0200100D:system library:fopen:Permission denied
    Have run /scripts/eximup couple times, restarted exim, courier-imap, cpanel, my lawn mower and jeep. Still no go. (Desperation move with the jeep, I know...) [/QUOTE]

    Restarting the lawn mower did it. You shredded the certs

    EDIT:

    Make certain the files in /var/cpanel/exim are owned by mailnull and mail. Like:
    root@mundane [/var/cpanel/ssl/exim]# ls -la
    total 16
    drwxr-xr-x 2 mailnull mail 4096 May 2 22:14 ./
    drwxr-xr-x 6 root root 4096 May 3 23:06 ../
    -rw------- 1 mailnull mail 1289 May 2 22:14 exim.crt
    -rw------- 1 mailnull mail 887 May 2 22:14 exim.key
    For testing, I changed the owner and group to nobody, and received the same error you did.
    Last edited by cpanelkenneth; 05-04-2007 at 11:19 AM. Reason: Solution Provided

  5. #5
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Shredded them? Well, at least I know I won't have to sharpen the blade this year!

    I am using pop-before smtp. No special set up at all...

    Edit:
    Hmmm, in /var/cpanel/ssl/exim mine are set root:root, and only root readable. No write. Changing perms to match yours...


    Edit2:
    And voila.. she is fixed. Thank you kind sir. ( Now I have to do this to all our boxes then really go cut the lawn! lol )
    Last edited by serversphere; 05-04-2007 at 11:33 AM.

  6. #6
    Member
    Join Date
    Nov 2003
    Posts
    129

    Default

    I seem to recall there was a problem some time ago with cpanel nightly updates wiping out my /etc/exim.key and /etc/exim.crt and I had a cron job running at 1am every morning to copy both back to the proper place is this still an issue does anyone know cause I just had to put crt in a new box today and I really dont like surprises first thing in the morning....

Similar Threads & Tags
Similar threads

  1. how do I install ssl cert with .key and .crt?
    By DolphinEcho in forum New User Questions
    Replies: 3
    Last Post: 07-14-2009, 07:40 AM
  2. key and crt for whm certificate
    By SubZero in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-08-2006, 01:15 PM
  3. How can I restart exim so it refreshes the SSL exim.crt and .key?
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-07-2006, 10:23 AM
  4. SSL Key/Crt Manager Issue
    By DataDork in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-28-2004, 10:31 PM
  5. How Can I updated /etc/exim.crt and /etc/exim.key?
    By seeyes in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-14-2004, 01:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube