Sagemaker Notebook - SSL failed validation when Boto3 session.client(verify=False)

0

In a sagemaker notebook with an associated git repository, when I try to create a boto3 session client using verify = False, I get the following : SSLError: SSL validation failed for {service_name } [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

The error resolves if I allow the default value of verify = None (meaning SSL certs are verified). My problem is that this session is created as part of a function call on the associated git repository and I don't want to change the behavior in the repo. I don't understand why this error occurs only when I specify not to validate SSL certificates. Any ideas of what explains this behavior?

asked 2 years ago6267 views
1 Answer
0

Hello,

Thank you for using AWS SageMaker.

When running the below command, it got executed without any error. More over this issue seems to look like a configuration issue, I'd recommend you to reach out to boto3 team via Github or opening a case with Premium Support team to identify if calling the session from Github is possible or not.

import boto3
import boto3.session

# Create your own session
my_session = boto3.session.Session()

# Now we can create low-level clients or resource clients from our custom session
s3 = my_session.client('s3',verify=False)

Open a support case with AWS using the link:

https://console.aws.amazon.com/support/home?#/case/create

AWS
SUPPORT ENGINEER
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions