1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-11-14 00:46:44 +00:00
certidude/doc/strongswan-updown.sh

5 lines
300 B
Bash
Raw Normal View History

#!/bin/sh
2016-03-01 11:52:10 +00:00
cat << EOF | curl -s -X POST -d @- -H "X-EventSource-Event: $PLUTO_VERB" http://ca.example.com/pub/?id=CA-channel-identifier-goes-here
{"address": "$(echo $PLUTO_PEER_CLIENT | sed 's/\/32$//')", "peer": "$PLUTO_PEER", "identity": "$PLUTO_PEER_ID", "routed_subnet": "$PLUTO_MY_CLIENT"}
EOF