pyauth / requests-http-signature

A Requests auth module for the IETF HTTP Message Signatures draft standard

Home Page:https://pyauth.github.io/requests-http-signature/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CryptographyDeprecationWarning

rwblokzijl opened this issue · comments

Hello, I am getting the following warning:

requests_http_signature/__init__.py:25: CryptographyDeprecationWarning: signer and verifier have been deprecated. Please use sign and verify instead.
  signer = key.signer(padding=self.PKCS1v15(), algorithm=hasher)

I happened in the following code:

with open('certs/example_client_signing.key', 'rb') as fh:                                                               
    auth=MyHTTPSignatureAuth(algorithm="rsa-sha256", headers=[ '(request-target)', 'date', 'digest' ], key=fh.read(), key_id=client_id)

i am using Python 3.5.3