Configure S3Proxy for SSL

This also demonstrates that SSL certificate checking occurs and the
tests must disable it for S3Proxy's self-signed certificate.
References #640.
This commit is contained in:
Andrew Gaul 2017-09-17 16:14:58 -07:00
parent 5653ab39fc
commit f531e6aff2
3 changed files with 6 additions and 2 deletions

View File

@ -41,7 +41,7 @@ set -o errexit
S3FS=../src/s3fs
# Allow these defaulted values to be overridden
: ${S3_URL:="http://127.0.0.1:8080"}
: ${S3_URL:="https://127.0.0.1:8080"}
: ${S3FS_CREDENTIALS_FILE:="passwd-s3fs"}
: ${TEST_BUCKET_1:="s3fs-integration-test"}
@ -182,6 +182,8 @@ function start_s3fs {
$TEST_BUCKET_MOUNT_POINT_1 \
-o use_path_request_style \
-o url=${S3_URL} \
-o no_check_certificate \
-o ssl_verify_hostname=0 \
-o createbucket \
${AUTH_OPT} \
-o dbglevel=${DBGLEVEL:=info} \

BIN
test/keystore.jks Normal file

Binary file not shown.

View File

@ -1,7 +1,9 @@
s3proxy.endpoint=http://127.0.0.1:8080
s3proxy.secure-endpoint=http://127.0.0.1:8080
s3proxy.authorization=aws-v4
s3proxy.identity=local-identity
s3proxy.credential=local-credential
s3proxy.keystore-path=keystore.jks
s3proxy.keystore-password=password
jclouds.provider=transient
jclouds.identity=remote-identity