server/admin/pki
Pierre-Olivier Mercier 771627a0da pki: fix team association, complement to 68e5c4cd2b
The fix introduced in the referenced commit was not working.

This time, it has been tested with the following commands:

	# Associate all certificate to a team
	curl http://localhost:8081/api/certs/ | jq -r .[].id | while read CERTID; do curl -X PUT -d '{"id_team":1}' http://localhost:8081/api/certs/$CERTID; done

	# For each certificate associated with the team, try to connect to the server with each certificate. Report failing certificates.
	curl -s http://localhost:8081/api/teams/1/certificates | jq -r '.[] | .id + " " + .password' | while read CERTID PASSWORD; do curl -sf --cert-type P12 --cert $CERTID.p12:$PASSWORD https://fic.srs.epita.fr/my.json > /dev/null || echo $CERTID; done
2019-02-06 03:40:49 +01:00
..
ca.go Introducing new PKI management 2018-05-11 05:27:50 +02:00
client.go pki: improve serial number generation + fix team association 2018-05-11 05:27:51 +02:00
common.go admin/pki: avoid some hard to read characters in password 2018-05-11 05:27:50 +02:00
team.go pki: fix team association, complement to 68e5c4cd2b 2019-02-06 03:40:49 +01:00