Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.pem integration [enhancement] #658

Closed
leej3 opened this issue Jun 16, 2021 · 2 comments
Closed

.pem integration [enhancement] #658

leej3 opened this issue Jun 16, 2021 · 2 comments
Labels
type: enhancement 💅🏼 New feature or request

Comments

@leej3
Copy link
Contributor

leej3 commented Jun 16, 2021

Description

This is a client request. We would like to support the following usage:

import swat
import os

os.environ['CAS_CLIENT_SSL_CA_LIST'] = "/opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/trustedcerts.pem"

conn = swat.CAS('https://sas.url.com/SASDrive', 5570,'username','password')

For this to work we think that the cert has to be installed in the jupyterlab instance. Is this correct @costrouc?

@costrouc
Copy link
Member

Was looking at the documentation of the class https://github.com/sassoftware/python-swat/blob/main/swat/cas/connection.py. Since we don't have a great way of hiding set environment variable secrets. I think you'll need to copy the file into the right shared from folder and then set the environment variable in your python notebook/terminal.

Related issues:

@leej3 does the advice above give you a path forward for supporting this request?

@leej3
Copy link
Contributor Author

leej3 commented Jun 23, 2021

Thanks for the help on this. Sorry for the delayed reply. I had patchy access to the VPN. What you suggested worked as far as I can tell. I do not have a username/password to confirm full authentication. It sounds like there is another problem on their side that is confounding any further debugging so I will mark this as resolved for now.

@leej3 leej3 closed this as completed Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement 💅🏼 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants