<commit_before>#!/bin/bash

# Script to generate self signed certificates for dev purposes
#
# See https://github.com/Trustroots/trustroots/wiki/SSL-Certificate for production certs

CERT_PATH="./scripts/certs"
CERT_FILE="trustroots_org"

CSR_FILE="${CERT_PATH}/${CERT_FILE}_csr.pem"
KEY_FILE="${CERT_PATH}/${CERT_FILE}_key.pem"
CER_FILE="${CERT_PATH}/${CERT_FILE}_cer.pem"

echo "Making sure $CERT_PATH exists..."
mkdir -p "$CERT_PATH"

echo "Generating self-signed certificates..."
openssl genrsa -out "$KEY_FILE" -aes256 1024
echo "Done: $KEY_FILE"
openssl req -new -key "$KEY_FILE" -out "$CSR_FILE"
openssl x509 -req -days 9999 -in "$CSR_FILE" -signkey "$KEY_FILE" -out "$CER_FILE"
echo "Done: $CER_FILE"<commit_msg>Do not use aes when creating ssl certs to prevent password requirement<commit_after>#!/bin/bash

# Script to generate self signed certificates for dev purposes
#
# See https://github.com/Trustroots/trustroots/wiki/SSL-Certificate for production certs

CERT_PATH="./scripts/certs"
CERT_FILE="trustroots_org"

CSR_FILE="${CERT_PATH}/${CERT_FILE}_csr.pem"
KEY_FILE="${CERT_PATH}/${CERT_FILE}_key.pem"
CER_FILE="${CERT_PATH}/${CERT_FILE}_cer.pem"

echo "Making sure $CERT_PATH exists..."
mkdir -p "$CERT_PATH"

echo "Generating self-signed certificates..."
openssl genrsa -out "$KEY_FILE" 1024
echo "Done: $KEY_FILE"
openssl req -new -key "$KEY_FILE" -out "$CSR_FILE"
openssl x509 -req -days 9999 -in "$CSR_FILE" -signkey "$KEY_FILE" -out "$CER_FILE"
echo "Done: $CER_FILE"
{'fraction_non_alphanumeric': 0.1511081262592344, 'fraction_numerical': 0.0167897918065816, 'mean_word_length': 5.711711711711712, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '900404', 'n_tokens_mistral': 597, 'n_tokens_neox': 545, 'n_words': 133}