File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- CERT_NAME=" _wildcard.gotogether.io.kr"
3+ CERT_NAME=" _wildcard.gotogether.io.kr+2 "
44
55echo " 🔐 Setting up mkcert for gotogether.io.kr..."
66
@@ -11,12 +11,21 @@ if ! command -v mkcert &> /dev/null; then
1111fi
1212
1313# 2. 로컬 CA 설치
14- mkcert -install
14+ echo " 📦 로컬 CA 설치 중..."
15+ if ! mkcert -install; then
16+ echo " ❌ mkcert -install 실패. 관리자 권한이 필요할 수 있습니다."
17+ exit 1
18+ fi
1519
1620# 3. 인증서 생성 (파일이 없을 때만)
1721if [[ -f " ${CERT_NAME} .pem" && -f " ${CERT_NAME} -key.pem" ]]; then
1822 echo " ✅ 인증서가 이미 존재합니다. 새로 생성하지 않습니다."
1923else
20- mkcert " *.gotogether.io.kr" 127.0.0.1 ::1
24+ echo " 🔧 인증서가 존재하지 않아 새로 생성합니다..."
25+ if mkcert " *.gotogether.io.kr" 127.0.0.1 ::1; then
2126 echo " ✅ 인증서 생성 완료: ${CERT_NAME} .pem, ${CERT_NAME} -key.pem"
27+ else
28+ echo " ❌ 인증서 생성 실패. mkcert 실행 중 오류가 발생했습니다."
29+ exit 1
30+ fi
2231fi
You can’t perform that action at this time.
0 commit comments