mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-13 23:48:15 -05:00
17 lines
348 B
Bash
Executable File
17 lines
348 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# brew-installed OpenSSL on MacOS
|
|
PATH=/usr/local/opt/openssl/bin:$PATH
|
|
|
|
n=${1:-3}
|
|
|
|
test -e Player-Data || mkdir Player-Data
|
|
|
|
echo Setting up SSL for $n parties
|
|
|
|
for i in `seq 0 $[n-1]`; do
|
|
openssl req -newkey rsa -nodes -x509 -out Player-Data/P$i.pem -keyout Player-Data/P$i.key -subj "/CN=P$i"
|
|
done
|
|
|
|
c_rehash Player-Data
|