In Linux, the below command is working fine. However if a run the same command on the MAC terminal it's giving the error. Could you share your suggestions with me?
First Command:
export CONFIG="
[req]
distinguished_name=dn
[ dn ]
[ ext ]
subjectKeyIdentifier=hash
basicConstraints=CA:TRUE,pathlen:1
keyUsage=critical, keyCertSign, cRLSign"
Second Command:
openssl req -new -x509 -nodes -newkey ec -pkeyopt ec_paramgen_curve:P-256 -pkeyopt ec_param_enc:named_curve \
-keyout root_ca.key -out root_ca.crt -days 1825 \
-subj "/C=US/SS=Something/L=Cary/O=Something/YY=Something/GG=Something Cert-Manager Root CA" -extensions ext -config <(echo "$CONFIG")
Error:
./linkerdInstallationScript.sh: line 24: syntax error near unexpected token `('
./linkerdInstallationScript.sh: line 24: `-subj "/C=US/SS=Something/L=Cary/O=Something/YY=Something/GG=Something Cert-Manager Root CA" -extensions ext -config <(echo "$CACONFIG")'