<commit_before>source setuprc

DIR=./demoCA
SUBJECT="/C=US/ST=ANYSTATE/L=ANYCITY/O=OPENSTACK/CN=www.openstack.local"
PASSWORD=${PASSWORD:-<PASSWORD>}
DAYS=3650
cd /tmp
mkdir -p $DIR
chmod 700 $DIR
mkdir -p $DIR/certs
mkdir -p $DIR/crl
mkdir -p $DIR/newcerts
mkdir -p $DIR/private
touch $DIR/index.txt
openssl req -new -keyout $DIR/private/./cakey.pem -out $DIR/./careq.pem -days $DAYS -passout pass:$PASSWORD -subj $SUBJECT
openssl ca -create_serial -passin <PASSWORD>:$PASSWORD -out $DIR/./cacert.pem -days $DAYS -batch -keyfile $DIR/private/./cakey.pem -selfsign -extensions v3_ca -subj $SUBJECT -infiles $DIR/./careq.pem
openssl genrsa -passout <PASSWORD>:$PASSWORD -des3 -out demoCA/private/server.key 1024 -subj $SUBJECT
openssl req -passin <PASSWORD>:$PASSWORD -new -days $DAYS -key demoCA/private/server.key -out demoCA/certs/server.csr -subj $SUBJECT
openssl ca -passin <PASSWORD>:$PASSWORD -in demoCA/certs/server.csr -batch -keyfile demoCA/private/cakey.pem -out demoCA/certs/server.crt -policy policy_anything -days $DAYS
chmod -R 700 $DIR/private
mv /tmp/$DIR $HOME/openstackCA<commit_msg>modify setupCA.sh<commit_after>source setuprc

DIR=./demoCA
SUBJECT="/C=US/ST=ANYSTATE/L=ANYCITY/O=OPENSTACK/CN=www.openstack.local"
PASSWORD=${PASSWORD:-<PASSWORD>}
DAYS=3650
mkdir /tmp/$USER
cd /tmp/$USER
mkdir -p $DIR
chmod 700 $DIR
mkdir -p $DIR/certs
mkdir -p $DIR/crl
mkdir -p $DIR/newcerts
mkdir -p $DIR/private
touch $DIR/index.txt
openssl req -new -keyout $DIR/private/./cakey.pem -out $DIR/./careq.pem -days $DAYS -passout <PASSWORD>:$PASSWORD -subj $SUBJECT
openssl ca -create_serial -passin <PASSWORD>:$PASSWORD -out $DIR/./cacert.pem -days $DAYS -batch -keyfile $DIR/private/./cakey.pem -selfsign -extensions v3_ca -subj $SUBJECT -infiles $DIR/./careq.pem
openssl genrsa -passout <PASSWORD>:$PASSWORD -des3 -out demoCA/private/server.key 1024 -subj $SUBJECT
openssl req -passin <PASSWORD>:$PASSWORD -new -days $DAYS -key demoCA/private/server.key -out demoCA/certs/server.csr -subj $SUBJECT
openssl ca -passin <PASSWORD>:$PASSWORD -in demoCA/certs/server.csr -batch -keyfile demoCA/private/cakey.pem -out demoCA/certs/server.crt -policy policy_anything -days $DAYS
chmod -R 700 $DIR/private
mv /tmp/$USER/$DIR $HOME/openstackCA
{'fraction_non_alphanumeric': 0.14814814814814814, 'fraction_numerical': 0.0142793395805444, 'mean_word_length': 4.350835322195704, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5025967', 'n_tokens_mistral': 917, 'n_tokens_neox': 862, 'n_words': 212}