Skip to content

Commit

Permalink
Merge pull request #59 from lmoureaux/revert-58-master
Browse files Browse the repository at this point in the history
Revert the temporary workaround for certificate issues on HTCondor
  • Loading branch information
ggonzr authored May 8, 2023
2 parents 895012e + 5682158 commit c164663
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-20.04
name: Get newest code and run pylint
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python 3.6
uses: actions/setup-python@v1
- name: Set up Python 3.6.8
uses: actions/setup-python@v4
with:
python-version: 3.6
python-version: "3.6.8"
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
Expand Down
11 changes: 3 additions & 8 deletions remote/cmswebwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import logging
import json
import os
import ssl
import time
try:
from http.client import HTTPSConnection
Expand All @@ -32,15 +31,11 @@ def __get_connection(self):
if self.cert_file is None or self.key_file is None:
raise Exception('Missing user certificate or user key')

# BUG: HTCondor nodes are missing the latest CA certificate
# See https://cern.service-now.com/service-portal?id=outage&n=OTG0076975
#context = ssl.create_default_context()
context = ssl._create_unverified_context()
context.load_cert_chain(self.cert_file)
return HTTPSConnection('cmsweb.cern.ch',
port=443,
timeout=120,
context=context)
cert_file=self.cert_file,
key_file=self.key_file,
timeout=120)

def get(self, path, cache=True):
"""
Expand Down

0 comments on commit c164663

Please sign in to comment.