Skip to content

Commit

Permalink
Attempt to configure routeros
Browse files Browse the repository at this point in the history
  • Loading branch information
gfenn-newbury committed Dec 20, 2021
1 parent a7c811b commit ffa7c1a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ jobs:
go-version: ${{ matrix.go }}
id: go

- name: Setup routeros
run: |
apk add --update --nocache sshpass
sshpass -p "" -o StrictHostChecking=no admin@127.0.0.1:2222 /certificate add name=root-cert common-name=MyRouter days-valid=3650 key-usage=key-cert-sign,crl-sign
sshpass -p "" -o StrictHostChecking=no admin@127.0.0.1:2222 /certificate sign root-cert
sshpass -p "" -o StrictHostChecking=no admin@127.0.0.1:2222 /certificate add name=https-cert common-name=MyRouter days-valid=3650
sshpass -p "" -o StrictHostChecking=no admin@127.0.0.1:2222 /certificate sign ca=root-cert https-cert
sshpass -p "" -o StrictHostChecking=no admin@127.0.0.1:2222 /ip service set www-ssl certificate=https-cert disabled=no
- name: Check out code into the Go module directory
uses: actions/checkout@v2.3.4

Expand Down Expand Up @@ -65,6 +74,7 @@ jobs:
image: gnewbury/routeros:${{ matrix.routeros_version }}
ports:
- 443:443
- 22:2222
volumes:
- /dev/net/tun:/dev/net/tun
options: >-
Expand Down

0 comments on commit ffa7c1a

Please sign in to comment.