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

Can't connect via SSL #64

Open
u84six opened this issue Oct 4, 2022 · 0 comments
Open

Can't connect via SSL #64

u84six opened this issue Oct 4, 2022 · 0 comments

Comments

@u84six
Copy link

u84six commented Oct 4, 2022

I'm trying to connect to a SQ server 9.6 via SSL and I'm receiving an error:

HTTPSConnectionPool(host='company.name.com', port=443): Max retries exceeded with url: /sonar/api/server/version (Caused by SSLError(SSLError(9, '[SSL] PEM lib (_ssl.c:4065)')))

The code I'm using is:

`URL = 'https://company.name.com/sonar'
USERNAME = 'admin'
PASSWORD = 'admin'
CERT = 'company.name.com.pem'

cert_path = Path(CERT)

if cert_path.is_file():
sonar = SonarQubeClient(sonarqube_url=URL, username=USERNAME, password=PASSWORD, cert=CERT)
version = sonar.server.get_server_version()
print(version)`

If I try the same api request using a curl command, it works. Is there any chance getting SSL working with this API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant