From 163538db2878926972addaf88b714328004496c6 Mon Sep 17 00:00:00 2001 From: Dave Dykstra <2129743+DrDaveD@users.noreply.github.com> Date: Tue, 20 Feb 2024 11:56:08 -0600 Subject: [PATCH] include ca_certs to urllib3, update to 3.7.1 --- osgpkitools/rest_client.py | 2 ++ osgpkitools/utils.py | 2 +- rpm/osg-pki-tools.spec | 5 ++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/osgpkitools/rest_client.py b/osgpkitools/rest_client.py index 5564609..43e19f5 100644 --- a/osgpkitools/rest_client.py +++ b/osgpkitools/rest_client.py @@ -1,6 +1,7 @@ import http.client import logging import socket +import ssl import urllib3 import urllib.parse @@ -28,6 +29,7 @@ def __init__(self, base_url, ssl_context, *args, **kwargs): self.base_url = base_url self.http = urllib3.PoolManager(ssl_context=ssl_context, + ca_certs=ssl.get_default_verify_paths().cafile, timeout=urllib3.util.Timeout(connect=2, read=10)) def close_connection(self): diff --git a/osgpkitools/utils.py b/osgpkitools/utils.py index ba87c4f..d41d3e4 100644 --- a/osgpkitools/utils.py +++ b/osgpkitools/utils.py @@ -7,7 +7,7 @@ from .ExceptionDefinitions import * -VERSION_NUMBER = "3.7.0" +VERSION_NUMBER = "3.7.1" HELP_EMAIL = 'help@opensciencegrid.org' diff --git a/rpm/osg-pki-tools.spec b/rpm/osg-pki-tools.spec index c5b0a3c..4951fb6 100644 --- a/rpm/osg-pki-tools.spec +++ b/rpm/osg-pki-tools.spec @@ -1,6 +1,6 @@ Summary: osg-pki-tools Name: osg-pki-tools -Version: 3.7.0 +Version: 3.7.1 Release: 1%{?dist} Source: osg-pki-tools-%{version}.tar.gz License: Apache 2.0 @@ -43,6 +43,9 @@ mv %{buildroot}/%{_prefix}/config/ca-issuer.conf %{buildroot}%{_sysconfdir}/osg/ %config(noreplace) %{_sysconfdir}/osg/pki/ca-issuer.conf %changelog +* Tue Feb 20 2024 Dave Dykstra - 3.7.1 +- Set the default ca_certs bundle for osg-incommon-cert-request. + * Tue Feb 20 2024 Dave Dykstra - 3.7.0 - Convert osg-incommon-cert-request to use urllib3 instead of M2crypto for its https connection, to make it work properly on EL9.