Discussion:
[stunnel-users] Windows stunnel Command Line Configuration File Location
Steve Jones
2018-10-17 20:58:37 UTC
Permalink
I would like to be able to run stunnel interactively on Windows, but specify a different location for the configuration file. When I looked at the help output, it stated that you could pass a parameter for "[<filename>]". I assumed I could put a path on there, but it does not appear to work. For example, I tried running "stunnel.exe C:\temp\stunnel.conf", but it would not find the configuration file even though it is there.

Is there a way to do what I am trying to do or does the config file have to be in a folder "..\config"?

Thanks.
Małgorzata Olszówka
2018-10-18 09:25:51 UTC
Permalink
Post by Steve Jones
I would like to be able to run stunnel interactively on Windows, but
specify a different location for the configuration file.  When I looked
at the help output, it stated that you could pass a parameter for
“[<filename>]”.  I assumed I could put a path on there, but it does not
appear to work.  For example, I tried running “stunnel.exe
C:\temp\stunnel.conf”, but it would not find the configuration file even
though it is there.
Is there a way to do what I am trying to do or does the config file have
to be in a folder “..\config”?
Hello Steve,

Could you specify how stunnel reports this error?
Seems to be a problem with permissions to the directory.
Post by Steve Jones
stunnel.exe C:\temp\stunnel.conf
stunnel logs:
2018.10.18 11:09:25 LOG5[main]: Reading configuration from file
C:\temp\stunnel.conf
...
2018.10.18 11:09:26 LOG5[main]: Configuration successful

Best regards,
Małgorzata Olszówka
Steve Jones
2018-10-18 14:58:40 UTC
Permalink
I have tried two different ways and print screened them in the attached Word doc.

If an attachment will not work, please let me know how to send this to you.

Thanks.



-----Original Message-----
From: stunnel-users <stunnel-users-***@stunnel.org> On Behalf Of Malgorzata Olszówka
Sent: Thursday, October 18, 2018 5:26 AM
To: stunnel-***@stunnel.org
Subject: Re: [stunnel-users] Windows stunnel Command Line Configuration File Location
Post by Steve Jones
I would like to be able to run stunnel interactively on Windows, but
specify a different location for the configuration file.  When I
looked at the help output, it stated that you could pass a parameter
for “[<filename>]”.  I assumed I could put a path on there, but it
does not appear to work.  For example, I tried running “stunnel.exe
C:\temp\stunnel.conf”, but it would not find the configuration file
even though it is there.
Is there a way to do what I am trying to do or does the config file
have to be in a folder “..\config”?
Hello Steve,

Could you specify how stunnel reports this error?
Seems to be a problem with permissions to the directory.
Post by Steve Jones
stunnel.exe C:\temp\stunnel.conf
stunnel logs:
2018.10.18 11:09:25 LOG5[main]: Reading configuration from file C:\temp\stunnel.conf ...
2018.10.18 11:09:26 LOG5[main]: Configuration successful

Best regards,
Małgorzata Olszówka
_______________________________________________
stunnel-users mailing list
stunnel-***@stunnel.org
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
Eric Eberhard
2018-10-18 19:02:55 UTC
Permalink
If it reading from .\config . then I would try putting the path in quotes.
If it fails to read the one in \temp but is not reading anything, I would
check permissions on the directory and file (easy test is set "everyone" to
full permissions, at least as a test). You have to do the entire directory
tree (in the case of c:\temp it is just that directory) and the file.



Eric



From: stunnel-users [mailto:stunnel-users-***@stunnel.org] On Behalf Of
Steve Jones
Sent: Wednesday, October 17, 2018 1:59 PM
To: stunnel-***@stunnel.org
Subject: [stunnel-users] Windows stunnel Command Line Configuration File
Location



I would like to be able to run stunnel interactively on Windows, but specify
a different location for the configuration file. When I looked at the help
output, it stated that you could pass a parameter for "[<filename>]". I
assumed I could put a path on there, but it does not appear to work. For
example, I tried running "stunnel.exe C:\temp\stunnel.conf", but it would
not find the configuration file even though it is there.



Is there a way to do what I am trying to do or does the config file have to
be in a folder "..\config"?



Thanks.
Steve Jones
2018-10-18 19:59:56 UTC
Permalink
Ok - weird. It just started working and I now can't make it fail. Same config file and same command line, but now it works.

Strange...

From: Eric Eberhard <***@vicsmba.com>
Sent: Thursday, October 18, 2018 3:03 PM
To: Steve Jones <***@excelsiorcg.com>; stunnel-***@stunnel.org
Subject: RE: [stunnel-users] Windows stunnel Command Line Configuration File Location

If it reading from .\config ... then I would try putting the path in quotes. If it fails to read the one in \temp but is not reading anything, I would check permissions on the directory and file (easy test is set "everyone" to full permissions, at least as a test). You have to do the entire directory tree (in the case of c:\temp it is just that directory) and the file.

Eric

From: stunnel-users [mailto:stunnel-users-***@stunnel.org] On Behalf Of Steve Jones
Sent: Wednesday, October 17, 2018 1:59 PM
To: stunnel-***@stunnel.org<mailto:stunnel-***@stunnel.org>
Subject: [stunnel-users] Windows stunnel Command Line Configuration File Location

I would like to be able to run stunnel interactively on Windows, but specify a different location for the configuration file. When I looked at the help output, it stated that you could pass a parameter for "[<filename>]". I assumed I could put a path on there, but it does not appear to work. For example, I tried running "stunnel.exe C:\temp\stunnel.conf", but it would not find the configuration file even though it is there.

Is there a way to do what I am trying to do or does the config file have to be in a folder "..\config"?

Thanks.

Loading...