fi
. .venv/bin/activate
python -V
+
+if [ `uname -s` == Darwin ]
+then
+ if [ ! -e /usr/local/opt/curl-openssl ]
+ then
+ echo Please run: brew install curl-openssl, and try again
+ exit 1
+ else
+ export PYCURL_CURL_CONFIG=/usr/local/opt/curl-openssl/bin/curl-config
+ export LDFLAGS=-L/usr/local/opt/openssl/lib
+ export CPPFLAGS=-I/usr/local/opt/openssl/include
+ fi
+fi
pip install -r requirements.txt
+
protoc -I=../pdns/ --python_out=. ../pdns/dnsmessage.proto
protoc -I=../pdns/ --python_out=. ../pdns/dnstap.proto
# Generate a new server certificate request
openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr -config configServer.conf
# Sign the server cert
-openssl x509 -req -days 1 -CA ca.pem -CAkey ca.key -CAcreateserial -in server.csr -out server.pem
+openssl x509 -req -days 1 -CA ca.pem -CAkey ca.key -CAcreateserial -in server.csr -out server.pem -extfile configServer.conf -extensions v3_req
# Generate a chain
cat server.pem ca.pem > server.chain