Skip to content

Conversation

carlomazzaferro
Copy link
Collaborator

@carlomazzaferro carlomazzaferro commented Jul 14, 2025

  • Keep the same port as usual for own address
  • Use NGINX ports for other node addresses
openssl genrsa -out ca.key 4096
openssl req -x509 -new -nodes -key ca.key -days 3650 \
  -out ca.crt \
  -subj "/CN=MyTestCA"

# 2) Create nginx private key + CSR
openssl genrsa -out nginx.key 2048
openssl req -new -key nginx.key \
  -out nginx.csr \
  -subj "/CN=localhost" \
  -addext "subjectAltName = DNS:localhost, IP:127.0.0.1"

# 3) Sign the nginx CSR with your CA
openssl x509 -req -in nginx.csr \
  -CA ca.crt -CAkey ca.key -CAcreateserial \
  -out nginx.crt -days 365 -sha256 \
  -extensions v3_req \
  -extfile <(printf "[v3_req]\nsubjectAltName=DNS:localhost,IP:127.0.0.1")

Will generate:

  • nginx.crt
  • nginx.key

To be used in nginx.conf like this, place them in /scripts/tools/ngnix/cert

  ssl_certificate /etc/nginx/cert/nginx.crt;
  ssl_certificate_key /etc/nginx/cert/nginx.key;
  • ca.crt, place it in /certs

Locally running (all in different shells):

>>> docker compose -f docker-compose.dev.yaml up
>>> ./scripts/run-server.sh 0 standard --init-servers 
>>> ./scripts/run-server.sh 1 standard 
>>> ./scripts/run-server.sh 2 standard 

If everything goes well, then run the client:

>>> ./scripts/run-client.sh

wojciechsromek and others added 15 commits June 6, 2025 15:23
* pass around batch sha and valid entries

* Update iris-mpc-common/src/helpers/batch_sync.rs

Co-authored-by: Ertugrul Aypek <ertugrul.aypek@toolsforhumanity.com>

* refactor to pass batch hash and valid entries directly

* use --release flag

* fix sha checking logic

* revert to using single sha / valid entries

* fix tests and clippy

* revert old changes

---------

Co-authored-by: Ertugrul Aypek <ertugrul.aypek@toolsforhumanity.com>
…version in that it describes the size of the total buffer instead of the aggregated one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants