Skip to content

Commit

Permalink
fix: certificates updates and xmlsec-path param removed
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Nov 21, 2022
1 parent e47a92c commit 3c3ef06
Show file tree
Hide file tree
Showing 38 changed files with 2,204 additions and 609 deletions.
2 changes: 1 addition & 1 deletion src/spid_sp_test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


BASE_DIR = Path(__file__).resolve().parent
__version__ = "1.2.7"
__version__ = "1.2.8"
__name__ = "spid_sp_test"
logger = logging.getLogger(__name__)

Expand Down
4 changes: 3 additions & 1 deletion src/spid_sp_test/authn_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from spid_sp_test.idp.settings import BASE as idp_eid, SAML2_IDP_CONFIG
from spid_sp_test import constants
from spid_sp_test import BASE_DIR, AbstractSpidCheck
from spid_sp_test.utils import get_xmlsec1_bin

from saml2.server import Server

Expand Down Expand Up @@ -382,8 +383,9 @@ def test_xmldsig(self):
tmp_file = NamedTemporaryFile(suffix=".xml")
tmp_file.write(self.authn_request_decoded)
tmp_file.seek(0)

cmd = (
"xmlsec1 --verify --insecure --id-attr:ID "
f"{get_xmlsec1_bin()} --verify --insecure --id-attr:ID "
'"urn:oasis:names:tc:SAML:2.0:protocol:AuthnRequest" '
# f'--pubkey-cert-pem {cert_file.name} '
# "--X509-skip-strict-checks"
Expand Down
8 changes: 0 additions & 8 deletions src/spid_sp_test/bin/spid_sp_test
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,6 @@ if __name__ == '__main__':
help="Debug level, see python logging; defaults to INFO if omitted"
)

parser.add_argument(
'-xp', '--xmlsec-path',
default=get_xmlsec1_bin(),
required=False,
help="xmlsec1 executable path, eg: /usr/bin/xmlsec1"
)

parser.add_argument(
'--production', '-p',
action="store_true",
Expand Down Expand Up @@ -357,7 +350,6 @@ if __name__ == '__main__':
authn_request_url=args.authn_url,
relay_state=authn_check.relay_state,
template_path=args.template_path,
xmlsec_binary=args.xmlsec_path,
test_names=args.test_names[0] if args.test_names else [],
test_jsons=args.test_jsons or [],
attr_json=args.attr_json,
Expand Down
4 changes: 3 additions & 1 deletion src/spid_sp_test/metadata.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from spid_sp_test.utils import del_ns
from spid_sp_test import constants
from spid_sp_test import BASE_DIR, AbstractSpidCheck
from spid_sp_test.utils import get_xmlsec1_bin

import logging
import os
import requests
Expand Down Expand Up @@ -279,7 +281,7 @@ def test_xmldsig(self):
tmp_file.seek(0)

xmlsec_cmd = [
"xmlsec1",
f"{get_xmlsec1_bin()}",
"--verify",
"--insecure",
"--id-attr:ID",
Expand Down
5 changes: 3 additions & 2 deletions tests/authn/spid_django_post.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
</p>
</noscript>
<form action="https://localhost:8080/samlsso" method="post">
<input type="hidden" name="SAMLRequest" value="PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxzYW1scDpBdXRoblJlcXVlc3QgeG1sbnM6ZHM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiIHhtbG5zOnNhbWw9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDphc3NlcnRpb24iIHhtbG5zOnNhbWxwPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6cHJvdG9jb2wiIElEPSJpZC05OE43SzhhSkZ3RGU2YlBWTyIgVmVyc2lvbj0iMi4wIiBJc3N1ZUluc3RhbnQ9IjIwMjEtMTEtMTVUMjA6NDM6NDdaIiBEZXN0aW5hdGlvbj0iaHR0cHM6Ly9sb2NhbGhvc3Q6ODA4MCIgRm9yY2VBdXRobj0iZmFsc2UiIFByb3RvY29sQmluZGluZz0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOmJpbmRpbmdzOkhUVFAtUE9TVCIgQXNzZXJ0aW9uQ29uc3VtZXJTZXJ2aWNlVVJMPSJodHRwczovL2xvY2Fs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wOk5hbWVJRFBvbGljeSBGb3JtYXQ9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDpuYW1laWQtZm9ybWF0OnRyYW5zaWVudCIvPjxzYW1scDpSZXF1ZXN0ZWRBdXRobkNvbnRleHQgQ29tcGFyaXNvbj0ibWluaW11bSI+PHNhbWw6QXV0aG5Db250ZXh0Q2xhc3NSZWY+aHR0cHM6Ly93d3cuc3BpZC5nb3YuaXQvU3BpZEwxPC9zYW1sOkF1dGhuQ29udGV4dENsYXNzUmVmPjwvc2FtbHA6UmVxdWVzdGVkQXV0aG5Db250ZXh0Pjwvc2FtbHA6QXV0aG5SZXF1ZXN0Pgo="/>
<input type="hidden" name="RelayState" value="/spid/echo_attributes"/>
<noscript>
<input type="submit" value="Continue"/>
</noscript>
</form>
</body>
</html>
</html>
30 changes: 21 additions & 9 deletions tests/certs/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
spid-compliant-certificates generator \
--key-size 3072 \
--common-name "A.C.M.E" \
--days 365 \
--entity-id https://spid.acme.it \
--locality-name Roma \
--org-id "PA:IT-c_h501" \
--org-name "A Company Making Everything" \
--sector public
### public


```
spid-compliant-certificates generator --key-size 3072 --common-name "spid-sp-test" --days 7650 --entity-id https://spid.example.it --locality-name Roma --org-id "PA:IT-c_h501" --org-name "Developers Italia" --sector public
cat crt.pem > ../pub_crt.pem
cat key.pem > ../pub_key.pem
```

### private

```
spid-compliant-certificates generator --key-size 3072 --common-name "spid-sp-test" --days 7650 --entity-id https://spid.example.it --locality-name Roma --org-id "VATIT-12345678901" --org-name "Developers Italia" --sector private
cat crt.pem > ../priv_crt.pem
cat key.pem > ../priv_key.pem
```
68 changes: 34 additions & 34 deletions tests/certs/priv_crt.pem
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
-----BEGIN CERTIFICATE-----
MIIGNjCCBJ6gAwIBAgIUSVvDzxN0sIzjdCPHYH6K6uSkWg4wDQYJKoZIhvcNAQEL
BQAwgY8xJDAiB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