This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cert signed by a root CA | |
scp [email protected]:~/scripted/root-CA/{server.crt,rootCA.pem} . | |
sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "./rootCA.pem" | |
sudo security add-trusted-cert -r trustRoot -k "/Library/Keychains/System.keychain" "./server.crt" | |
# Self-signed cert | |
scp [email protected]:~/scripted/server-only/server.crt . | |
sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "./server.crt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Paxos Proposer --- | |
proposer(v): | |
choose n > n_p | |
send prepare(n) to all servers including self | |
if prepare_ok(n, n_a, v_a) from majority: | |
v’ = v_a with highest n_a; choose own v otherwise | |
send accept(n, v’) to all | |
if accept_ok(n) from majority: | |
send decided(v’) to all | |