You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
687 B
Bash

#!/bin/bash
# 개발용 자체 서명 SSL 인증서 생성
echo "🔐 SSL 인증서 생성 중..."
# SSL 디렉토리 생성
mkdir -p portainer/nginx/ssl
# 자체 서명 인증서 생성
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-keyout portainer/nginx/ssl/key.pem \
-out portainer/nginx/ssl/cert.pem \
-subj "/C=KR/ST=Seoul/L=Seoul/O=StockOracle/OU=Development/CN=localhost"
# 권한 설정
chmod 600 portainer/nginx/ssl/key.pem
chmod 644 portainer/nginx/ssl/cert.pem
echo "✅ SSL 인증서 생성 완료!"
echo "📁 위치: portainer/nginx/ssl/"
echo "⚠️ 이 인증서는 개발용입니다. 프로덕션에서는 Let's Encrypt를 사용하세요."