Skip to content

Commit

Permalink
copy cert/ckey methods over to pycurlRucio
Browse files Browse the repository at this point in the history
  • Loading branch information
amaltaro committed Jul 1, 2020
1 parent 12797da commit ec6cabe
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/python/WMCore/MicroService/Tools/PycurlRucio.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,23 @@
except ImportError:
# PY3
from urllib.parse import quote, unquote
from WMCore.MicroService.Unified.Common import cert, ckey
from Utils.CertTools import getKeyCertFromEnv
from WMCore.Services.pycurl_manager import RequestHandler
from WMCore.Services.pycurl_manager import getdata as multi_getdata


def ckey():
"Return user CA key either from proxy or userkey.pem"
pair = getKeyCertFromEnv()
return pair[0]


def cert():
"Return user CA cert either from proxy or usercert.pem"
pair = getKeyCertFromEnv()
return pair[1]


def parseNewLineJson(stream):
"""
Parse newline delimited json streaming data
Expand Down

0 comments on commit ec6cabe

Please sign in to comment.