| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. -e |
| 2 | # This data is documented at <https://www.iana.org/dnssec/files>. |
| 3 | |
| 4 | wget -O root-anchors.xml.NEW https://data.iana.org/root-anchors/root-anchors.xml |
| 5 | |
| 6 | if diffscip-shell system . . diff. -u root-anchors.xml root-anchors.xml.NEW; then |
| 7 | echoscip-shell system . . echo. "root-anchors.xml has NOT changed." |
| 8 | rmscip-shell system . . rm. root-anchors.xml.NEW |
| 9 | exit |
| 10 | fi |
| 11 | |
| 12 | echoscip-shell system . . echo. "root-anchors.xml has changed." |
| 13 | |
| 14 | wget -O root-anchors.p7s.NEW https://data.iana.org/root-anchors/root-anchors.p7s |
| 15 | |
| 16 | opensslscip-shell system . . openssl. smime -verify -CAfile icannbundle.pem -inform DER -in root-anchors.p7s.NEW -content root-anchors.xml.NEW -out /dev/nullscip-shell filesystem . . `/dev/null`. |
| 17 | |
| 18 | mvscip-shell system . . mv. root-anchors.xml.NEW root-anchors.xml |
| 19 | mvscip-shell system . . mv. root-anchors.p7s.NEW root-anchors.p7s |
| 20 |