-
Notifications
You must be signed in to change notification settings - Fork 3
Fix windows install issues #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ljoy913
commented
May 13, 2025
- Fix x509 generation script
- Fix broken symlink in setup script
- Apply color-eyre fix from PR 117
# generate self-signed root CA cert | ||
openssl req -x509 -new -newkey ec:<(openssl ecparam -name secp521r1) -keyout "$tmpdir/root_CA.key" -out "$tmpdir/root_CA.crt" -nodes -subj "/CN=NY DMV Test Root CA" -days 3650 -config openssl_ca.cnf -extensions v3_ca -sha512 | ||
openssl ecparam -name secp521r1 -out tmpkey.pem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rename tmpkey.pem $tmpdir/ecparamp521?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
||
# generate intermediate CA cert request | ||
openssl req -new -newkey ec:<(openssl ecparam -name secp384r1) -keyout "$tmpdir/CA.key" -out "$tmpdir/CA.csr" -nodes -subj "/CN=NY DMV Test CA" -config openssl_ca.cnf -extensions v3_ca -sha384 | ||
openssl ecparam -name secp384r1 -out tmpkey.pem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rename tmpkey.pem $tmpdir/ecparamp384?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
||
# root CA signs the CA cert request | ||
openssl x509 -req -in "$tmpdir/CA.csr" -out "$tmpdir/CA.crt" -CA "$tmpdir/root_CA.crt" -CAkey "$tmpdir/root_CA.key" -CAcreateserial -days 1825 -extfile openssl_ca.cnf -extensions v3_ca -sha512 | ||
|
||
# generate signer cert request | ||
openssl req -new -newkey ec:<(openssl ecparam -name prime256v1) -keyout "$tmpdir/issuer.key" -out "$tmpdir/issuer.csr" -nodes -subj "/CN=NY DMV Test Issuer" -config openssl_ca.cnf -extensions v3_signer -sha256 | ||
openssl ecparam -name prime256v1 -out tmpkey.pem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rename tmpkey.pem $tmpdir/ecparamp256?
@@ -58,7 +58,7 @@ if [ -f "${CIRCOM_SRC_DIR}/circomlib" ]; then | |||
rm -f "${CIRCOM_SRC_DIR}/circomlib" | |||
if [[ "$OS" == "Windows_NT" || "$(uname -o 2>/dev/null)" == "Msys" ]]; then | |||
echo "Creating Windows junction..." | |||
cmd //c "mklink /J ${CIRCOM_SRC_DIR//\//\\}\\circomlib circuits\\circomlib" | |||
cmd //c "mklink /J $(cygpath -wa "$CIRCOM_SRC_DIR"/circomlib) $(cygpath -wa "${ROOT_DIR}/circuits/circomlib")" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is cygpath always defined, even if you don't use a cygwin type system?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is cygpath always defined, even if you don't use a cygwin type system?
cygpath
will only be used on windows/msys (gitbash) shells. If on ubuntu, the symlink will already be there and cygpath won't get called.