goldenChat base source add

This commit is contained in:
aidev
2026-05-23 15:11:48 +09:00
commit a4ea7762b5
2081 changed files with 1155760 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
# 자체 서명 SSL 인증서 생성 스크립트
# SSL 디렉토리로 이동
cd "$(dirname "$0")"
# 인증서가 이미 존재하면 스킵
if [ -f "server.crt" ] && [ -f "server.key" ]; then
echo "SSL certificates already exist."
exit 0
fi
echo "Generating self-signed SSL certificate..."
# 자체 서명 인증서 생성 (유효기간 10년)
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 \
-keyout server.key \
-out server.crt \
-subj "/C=KR/ST=Seoul/L=Seoul/O=GoldenAnalysis/OU=Dev/CN=localhost" \
-addext "subjectAltName=DNS:localhost,IP:127.0.0.1"
echo "SSL certificate generated successfully!"
echo " - Certificate: server.crt"
echo " - Private Key: server.key"