File transfer CI: use rustls-style tls config for aquatic_ws

This commit is contained in:
Joakim Frostegård 2021-11-01 19:26:49 +01:00
parent 23c2eff6f3
commit 2ea88c465c

View file

@ -55,8 +55,6 @@ openssl pkcs8 -in key.pem -topk8 -nocrypt -out key.pk8 # rustls
$SUDO cp cert.crt /usr/local/share/ca-certificates/snakeoil.crt $SUDO cp cert.crt /usr/local/share/ca-certificates/snakeoil.crt
$SUDO update-ca-certificates $SUDO update-ca-certificates
openssl pkcs12 -export -passout "pass:p" -out identity.pfx -inkey key.pem -in cert.crt
# Build and start tracker # Build and start tracker
cargo build --bin aquatic cargo build --bin aquatic
@ -85,9 +83,8 @@ echo "log_level = 'trace'
[network] [network]
address = '127.0.0.1:3002' address = '127.0.0.1:3002'
use_tls = true tls_certificate_path = './cert.crt'
tls_pkcs12_path = './identity.pfx' tls_private_key_path = './key.pk8'
tls_pkcs12_password = 'p'
" > ws.toml " > ws.toml
./target/debug/aquatic ws -c ws.toml > "$HOME/wss.log" 2>&1 & ./target/debug/aquatic ws -c ws.toml > "$HOME/wss.log" 2>&1 &