diff --git a/README.md b/README.md index fbf8e89e..db11f1ba 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ L'immagine `italia/spid-testenv2` a anche disponibile su [Docker Hub](https://hu Su macOS si può usare `brew install libxmlsec1 libffi`. - Su Debian/Ubuntu si può usare `apt-get install libxmlsec1 libffi6`. + Su Debian/Ubuntu si può usare `apt-get install libxmlsec1 libffi7`. 1. Creare ed attivare un virtualenv diff --git a/testenv/crypto.py b/testenv/crypto.py index ad970cf5..5847d62c 100644 --- a/testenv/crypto.py +++ b/testenv/crypto.py @@ -290,7 +290,7 @@ def _ensure_matching_certificate(self): def _verify_signature(self): try: self._verifier.verify( - self._request.saml_request, x509_cert=self._cert) + self._request.saml_request, x509_cert=self._cert, ignore_ambiguous_key_info=True) except InvalidDigest: self._fail('Il valore del digest non è valido.') except InvalidSignature_: diff --git a/testenv/log.py b/testenv/log.py index 5eda0a1a..d49b8f04 100644 --- a/testenv/log.py +++ b/testenv/log.py @@ -6,7 +6,7 @@ logging.basicConfig(level=logging.DEBUG) handler = RotatingFileHandler( - 'spid.log', maxBytes=500000, backupCount=1 + '/tmp/spid.log', maxBytes=500000, backupCount=1 ) handler.setLevel(logging.DEBUG) formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(module)s - %(message)s')