S3Sync.net
February 02, 2014, 01:36:00 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: --no-ssl  (Read 4152 times)
Charlie
Newbie
*
Posts: 4


View Profile
« on: February 22, 2007, 07:52:27 AM »

Hi

Would it be possible to make a --no-ssl option

currently when a new version of s3sync arrives I change line 37 s3try.rb from
                if $S3syncOptions['--ssl'] and $SSL_CERT_DIR
to
                if $SSL_CERT_DIR or $S3syncOptions['--ssl']

so that if I have $SSL_CERT_DIR defined s3cmd and s3sync default to ssl connections. Thus a
                if $SSL_CERT_DIR and not $S3syncOptions['--no-ssl']
would be a (for me) nice feature if things default to secure.

regards
  charlie
« Last Edit: February 22, 2007, 01:29:31 PM by ferrix » Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #1 on: February 22, 2007, 01:30:45 PM »

What you're asking for is to reverse the way the system behaves, so that your way will become the default?  I don't understand why don't you juse use -s instead of changing the code?
Logged
Charlie
Newbie
*
Posts: 4


View Profile
« Reply #2 on: February 22, 2007, 04:20:58 PM »

I don't understand why don't you juse use -s instead of changing the code?

maybe I titled my post/request badly

I felt that when I defined SSL_CERT_DIR I was already telling s3* to use SSL and that the -s is thus redundant. I would prefer that once I set SSL_CERT_DIR all my s3 requests default to secure without further intervention.

regards
  charlie
Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #3 on: February 22, 2007, 08:16:16 PM »

I understand what you mean, however I would like to maintain the distinction between environment variables for general invariant configuration information, and options for instructions for the current command invocation.

For example, it's very possible that despite having the SSL env variable set, someone might want to do some non-ssl S3 transfers.

Thanks for the suggestion  Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!