cp-demo icon indicating copy to clipboard operation
cp-demo copied to clipboard

Win_b64 Support

Open aollag09 opened this issue 6 years ago • 0 comments

Hello

First thanks for this really funy and nice exemple to demonstrate the power of Kafka & Confluent with ElasticSearch !

However, I had some troubles to install it on a Windows environment. Your ./script/start.sh fails with MINGW64.

Indeed the script certs-create.sh fails because of the command that generates the CA Key :

# Generate CA key openssl req -new -x509 -keyout snakeoil-ca-1.key -out snakeoil-ca-1.crt -days 365 -subj '/CN=ca1.test.confluent.io/OU=TEST/O=CONFLUENT/L=PaloAlto/S=Ca/C=US' -passin pass:confluent -passout pass:confluent Error is : Subject does not start with '/'.

This is a common error when using the Git Bash in windows: https://stackoverflow.com/questions/31506158/running-openssl-from-a-bash-script-on-windows-subject-does-not-start-with

A fix that work for me : # Generate CA key openssl req -new -x509 -keyout snakeoil-ca-1.key -out snakeoil-ca-1.crt -days 365 -subj '//CN=ca1.test.confluent.io\OU=TEST\O=CONFLUENT\L=PaloAlto\S=Ca\C=US' -passin pass:confluent -passout pass:confluent

Ciao

aollag09 avatar May 23 '18 13:05 aollag09