summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoratanarjuat <atanarjuat@example.com>2022-05-21 01:50:47 +0200
committeratanarjuat <atanarjuat@example.com>2022-05-21 05:04:09 +0200
commit182e3e76908f0824eac155b5e14775b50fe0aca5 (patch)
treee0d20e237ff6159b8967a3fd4592134a35bbcf77 /Makefile
parenta809112a20b31b9a4adca31ae564d943a41e9023 (diff)
simplify testing of client and server
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3552bc0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+OBFS4_ENDPOINT ?=
+OBFS4_CERT ?=
+
+certs:
+ curl -k https://black.riseup.net/ca.crt > /tmp/ca.crt
+ curl -k https://api.black.riseup.net/3/cert > /tmp/cert.pem
+
+build-client:
+ go get ./...
+ go build -o obfsvpn-client ./client
+
+run-client:
+ ./obfsvpn-client -c ${OBFS4_CERT}
+
+run-openvpn:
+ ./scripts/run-openvpn-client.sh
+
+check:
+ curl https://wtfismyip.com/json