feat(inception imporing stuff (come back on the subject)

This commit is contained in:
Raphael 2025-06-25 23:10:28 +02:00
parent b20e81b0fe
commit 778e1a9056
6 changed files with 64 additions and 14 deletions

View file

@ -8,7 +8,7 @@ END = \033[0m
if [ ! -f "$CERT_DIR/nginx.key" ]; then
@printf '$GREYGenerating the ssl$GREEN Certificate$END\n';
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt -subj "/C=FR/ST=Paris/L=42/O=Students/OU=Inception/CN=rparodi.42.fr"
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt -subj "/C=FR/ST=Paris/L=42/O=Students/OU=Inception/CN=$DOMAIN"
else
@printf '$GREYGenerating the ssl certificate$RED already exist$END\n';
fi