Re: [stunnel-users] Trying to get stunnel to work for

This is a discussion on Re: [stunnel-users] Trying to get stunnel to work for within the Stunnel Users forums, part of the Networking and Network Related category; --===============0691741123== Content-Type: multipart/alternative; boundary="=-e+gMmC78SN4mT2RoG0I7" --=-e+gMmC78SN4mT2RoG0I7 Content-Type: text/plain; charset=utf-8 Content-...


Go Back   Usenet Forums > Networking and Network Related > Stunnel Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-21-2007
Gonzalo Diethelm
 
Posts: n/a
Default Re: [stunnel-users] Trying to get stunnel to work for


--===============0691741123==
Content-Type: multipart/alternative; boundary="=-e+gMmC78SN4mT2RoG0I7"


--=-e+gMmC78SN4mT2RoG0I7
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

I did a simple search on Google for "stunnel Wrong permissions on" and
followed the very first link:


http://ipucu.enderunix.org/view.php?id=973&lang=en

"Wrong permissions on /usr/local/etc/stunnel/stunnel.pem" -
Ýsmail Yenigül - (2006-03-07 19:12:40) [1934]

if you get this error message issue the following command to fix
the permission.

# chmod 600 /usr/local/etc/stunnel/stunnel.pem


HTH. Regards.

On Thu, 2007-06-21 at 12:23 -0400, Van wrote:

> Getting closer. I now get-
>
> [van@mailserver ]$ sudo stunnel /usr/local/etc/stunnel/stunnel.conf
> localhost:ipop3
>
> 2007.06.21 11:51:27 LOG4[15899:3086476992]: Wrong permissions on /usr/
> local/etc/stunnel/mail.pem
> 2007.06.21 11:51:27 LOG4[15899:3086476992]: Wrong permissions on /usr/
> local/etc/stunnel/mail.pem
> 2007.06.21 11:51:27 LOG4[15899:3086476992]: Wrong permissions on /usr/
> local/etc/stunnel/mail.pem
>
> But that doesn't make sense to me. mail.pem permissions are the same
> as my cert's and it works fine.
>
> [van@mailserver change_passwd]$ ls -al /usr/local/etc/stunnel/mail.pem
> -rw-r--r-- 1 root root 2942 Jun 20 18:21 /usr/local/etc/stunnel/
> mail.pem
>
> [van@mailserver change_passwd]$ ls -al /etc/httpd/certs/www.crt
> -rw-r--r-- 1 root root 1074 Jun 1 12:30 /etc/httpd/certs/www.crt
>
> Is the error misleading? Or what should the mail.pem perms be?
>
> Van
>
>
>
> On Jun 20, 2007, at 9:33 PM, Kevin Cook wrote:
>
> >
> > If you are using a stunnel.conf file, I would replace the '-d pop3s
> > -r'
> > with the absolute path to the .conf file:
> >
> > sudo /usr/local/sbin/stunnel /usr/local/etc/stunnel/stunnel.conf
> >
> > I believe command line options were typically used more in older
> > versions, but now all configuration is done in the configuration file.
> >
> >
> > Kevin
> >
> > -----Original Message-----
> > From: Van [mailto:vanyel@medusa.bioc.aecom.yu.edu]
> > Sent: Wednesday, June 20, 2007 6:03 PM
> > To: stunnel-users@mirt.net
> > Subject: [stunnel-users] Trying to get stunnel to work for forwarding
> > pop3sto ipop3 port
> >
> > Hello,
> >
> > This is my introduction to stunnel. I've inherited control of a
> > pop3 and
> > imap server running Red Hat Linux 4 that I want to access via pop3s
> > and
> > imaps. I'm starting out with securing the pop3 since most users are
> > using it.
> >
> > I downloaded stunnel 4.20 and compiled it according to the
> > instructions
> > on stunnel.org.
> >
> > I read the certificates section of the site and made a new .pem file
> > that I named mail.pem and have in the /usr/local/etc/stunnel/
> > directory
> > that /usr/local/etc/stunnel/stunnel.conf asks for. But when I try to
> > run stunnel like in the Examples section I get :
> >
> > [van@mailserver ~]$ sudo /usr/local/sbin/stunnel -d pop3s -r
> > localhost:ipop3
> > 2007.06.20 17:59:54 LOG3[25516:3086419648]: -d: No such file or
> > directory (2)
> > Syntax:
> > stunnel [<filename>] ] -fd <n> | -help | -version | -sockets
> > <filename> - use specified config file instead of /usr/local/
> > etc/stunnel/stunnel.conf
> > -fd <n> - read the config file from a file descriptor
> > -help - get config file help
> > -version - display version and defaults
> > -sockets - display default socket options
> >
> > I'm a little lost here. Never dealt with a .pem file before stunnel.
> > I have a self-signed cert I'm successfully using for https webmail on
> > the server and guessing stunnel couldn't see that, I appended my file
> > 'mailserver.crt' into my mail.pem file and edited stunnel.conf so it
> > has
> >
> > ;CAfile = /usr/local/etc/stunnel/certs.pem CAfile =
> > /usr/local/etc/stunnel/mail.pem
> >
> > but no dice. Same result.
> >
> > Trying to debug, I find 'stunnel -V' also gives the same result.
> >
> > Can someone point out what's going wrong?
> >
> >
> > -Van
> > _______________________________________________
> > stunnel-users mailing list
> > stunnel-users@mirt.net
> > http://stunnel.mirt.net/mailman/listinfo/stunnel-users
> >
> >

>
> _______________________________________________
> stunnel-users mailing list
> stunnel-users@mirt.net
> http://stunnel.mirt.net/mailman/listinfo/stunnel-users
>



--
Gonzalo Diethelm
gonzalo.diethelm@diethelm.org

--=-e+gMmC78SN4mT2RoG0I7
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.12.1">
</HEAD>
<BODY>
I did a simple search on Google for &quot;stunnel Wrong permissions on&quot; and followed the very first link:<BR>
<BR>
<BLOCKQUOTE>
<A HREF="http://ipucu.enderunix.org/view.php?id=973&lang=en">http://ipucu.enderunix.org/view.php?id=973&amp;lang=en</A><BR>
<BR>
<B><TT>&quot;Wrong permissions on /usr/local/etc/stunnel/stunnel.pem&quot;</TT></B><TT> </TT><TT><B><I>- Ýsmail Yenigü</I></B></TT><TT><B><I>l -</I></B></TT><TT><I> (2006-03-07 19:12:40)&nbsp;&nbsp;</I></TT><TT> </TT><TT><B>[1934]</B></TT><TT> </TT><BR>
<BR>
<TT>if you get this error message issue the following command to fix the permission. </TT><BR>
<BR>
<TT># chmod 600 /usr/local/etc/stunnel/stunnel.pem</TT><BR>
</BLOCKQUOTE>
<BR>
HTH. Regards.<BR>
<BR>
On Thu, 2007-06-21 at 12:23 -0400, Van wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Getting closer. I now get-</FONT>

<FONT COLOR="#000000">[van@mailserver ]$ sudo stunnel /usr/local/etc/stunnel/stunnel.conf </FONT>
<FONT COLOR="#000000">localhost:ipop3</FONT>

<FONT COLOR="#000000">2007.06.21 11:51:27 LOG4[15899:3086476992]: Wrong permissions on /usr/ </FONT>
<FONT COLOR="#000000">local/etc/stunnel/mail.pem</FONT>
<FONT COLOR="#000000">2007.06.21 11:51:27 LOG4[15899:3086476992]: Wrong permissions on /usr/ </FONT>
<FONT COLOR="#000000">local/etc/stunnel/mail.pem</FONT>
<FONT COLOR="#000000">2007.06.21 11:51:27 LOG4[15899:3086476992]: Wrong permissions on /usr/ </FONT>
<FONT COLOR="#000000">local/etc/stunnel/mail.pem</FONT>

<FONT COLOR="#000000">But that doesn't make sense to me. mail.pem permissions are the same </FONT>
<FONT COLOR="#000000">as my cert's and it works fine.</FONT>

<FONT COLOR="#000000">[van@mailserver change_passwd]$ ls -al /usr/local/etc/stunnel/mail.pem</FONT>
<FONT COLOR="#000000">-rw-r--r-- 1 root root 2942 Jun 20 18:21 /usr/local/etc/stunnel/ </FONT>
<FONT COLOR="#000000">mail.pem</FONT>

<FONT COLOR="#000000">[van@mailserver change_passwd]$ ls -al /etc/httpd/certs/www.crt</FONT>
<FONT COLOR="#000000">-rw-r--r-- 1 root root 1074 Jun 1 12:30 /etc/httpd/certs/www.crt</FONT>

<FONT COLOR="#000000">Is the error misleading? Or what should the mail.pem perms be?</FONT>

<FONT COLOR="#000000">Van</FONT>



<FONT COLOR="#000000">On Jun 20, 2007, at 9:33 PM, Kevin Cook wrote:</FONT>

<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; If you are using a stunnel.conf file, I would replace the '-d pop3s </FONT>
<FONT COLOR="#000000">&gt; -r'</FONT>
<FONT COLOR="#000000">&gt; with the absolute path to the .conf file:</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; sudo /usr/local/sbin/stunnel /usr/local/etc/stunnel/stunnel.conf</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; I believe command line options were typically used more in older</FONT>
<FONT COLOR="#000000">&gt; versions, but now all configuration is done in the configuration file.</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; Kevin</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; -----Original Message-----</FONT>
<FONT COLOR="#000000">&gt; From: Van [mailto:<A HREF="mailto:vanyel@medusa.bioc.aecom.yu.edu">vany el@medusa.bioc.aecom.yu.edu</A>]</FONT>
<FONT COLOR="#000000">&gt; Sent: Wednesday, June 20, 2007 6:03 PM</FONT>
<FONT COLOR="#000000">&gt; To: <A HREF="mailto:stunnel-users@mirt.net">stunnel-users@mirt.net</A></FONT>
<FONT COLOR="#000000">&gt; Subject: [stunnel-users] Trying to get stunnel to work for forwarding</FONT>
<FONT COLOR="#000000">&gt; pop3sto ipop3 port</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; Hello,</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; This is my introduction to stunnel. I've inherited control of a </FONT>
<FONT COLOR="#000000">&gt; pop3 and</FONT>
<FONT COLOR="#000000">&gt; imap server running Red Hat Linux 4 that I want to access via pop3s </FONT>
<FONT COLOR="#000000">&gt; and</FONT>
<FONT COLOR="#000000">&gt; imaps. I'm starting out with securing the pop3 since most users are</FONT>
<FONT COLOR="#000000">&gt; using it.</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; I downloaded stunnel 4.20 and compiled it according to the </FONT>
<FONT COLOR="#000000">&gt; instructions</FONT>
<FONT COLOR="#000000">&gt; on stunnel.org.</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; I read the certificates section of the site and made a new .pem file</FONT>
<FONT COLOR="#000000">&gt; that I named mail.pem and have in the /usr/local/etc/stunnel/ </FONT>
<FONT COLOR="#000000">&gt; directory</FONT>
<FONT COLOR="#000000">&gt; that /usr/local/etc/stunnel/stunnel.conf asks for. But when I try to</FONT>
<FONT COLOR="#000000">&gt; run stunnel like in the Examples section I get :</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; [van@mailserver ~]$ sudo /usr/local/sbin/stunnel -d pop3s -r</FONT>
<FONT COLOR="#000000">&gt; localhost:ipop3</FONT>
<FONT COLOR="#000000">&gt; 2007.06.20 17:59:54 LOG3[25516:3086419648]: -d: No such file or</FONT>
<FONT COLOR="#000000">&gt; directory (2)</FONT>
<FONT COLOR="#000000">&gt; Syntax:</FONT>
<FONT COLOR="#000000">&gt; stunnel [&lt;filename&gt;] ] -fd &lt;n&gt; | -help | -version | -sockets</FONT>
<FONT COLOR="#000000">&gt; &lt;filename&gt; - use specified config file instead of /usr/local/</FONT>
<FONT COLOR="#000000">&gt; etc/stunnel/stunnel.conf</FONT>
<FONT COLOR="#000000">&gt; -fd &lt;n&gt; - read the config file from a file descriptor</FONT>
<FONT COLOR="#000000">&gt; -help - get config file help</FONT>
<FONT COLOR="#000000">&gt; -version - display version and defaults</FONT>
<FONT COLOR="#000000">&gt; -sockets - display default socket options</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; I'm a little lost here. Never dealt with a .pem file before stunnel.</FONT>
<FONT COLOR="#000000">&gt; I have a self-signed cert I'm successfully using for https webmail on</FONT>
<FONT COLOR="#000000">&gt; the server and guessing stunnel couldn't see that, I appended my file</FONT>
<FONT COLOR="#000000">&gt; 'mailserver.crt' into my mail.pem file and edited stunnel.conf so it</FONT>
<FONT COLOR="#000000">&gt; has</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; ;CAfile = /usr/local/etc/stunnel/certs.pem CAfile =</FONT>
<FONT COLOR="#000000">&gt; /usr/local/etc/stunnel/mail.pem</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; but no dice. Same result.</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; Trying to debug, I find 'stunnel -V' also gives the same result.</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; Can someone point out what's going wrong?</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; -Van</FONT>
<FONT COLOR="#000000">&gt; _______________________________________________</FONT>
<FONT COLOR="#000000">&gt; stunnel-users mailing list</FONT>
<FONT COLOR="#000000">&gt; <A HREF="mailto:stunnel-users@mirt.net">stunnel-users@mirt.net</A></FONT>
<FONT COLOR="#000000">&gt; <A HREF="http://stunnel.mirt.net/mailman/listinfo/stunnel-users">http://stunnel.mirt.net/mailman/listinfo/stunnel-users</A></FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>

<FONT COLOR="#000000">__________________________________ _____________</FONT>
<FONT COLOR="#000000">stunnel-users mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:stunnel-users@mirt.net">stunnel-users@mirt.net</A></FONT>
<FONT COLOR="#000000"><A HREF="http://stunnel.mirt.net/mailman/listinfo/stunnel-users">http://stunnel.mirt.net/mailman/listinfo/stunnel-users</A></FONT>

</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
-- <BR>
Gonzalo Diethelm<BR>
gonzalo.diethelm@diethelm.org
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

--=-e+gMmC78SN4mT2RoG0I7--


--===============0691741123==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
stunnel-users mailing list
stunnel-users@mirt.net
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

--===============0691741123==--

Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:36 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0