ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • SSL 인증서
    APM(ApachePhpMysql) 2024. 9. 9. 18:35

    1.  Window Powershell 관리자 권환으로 실행

    2. Get-ExecutionPolicy 입력

    • Restricted가 아닐 경우 Set-ExecutionPolicy AllSigned 실행 후 Y 입력

    3. Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

    입력

    4. choco 입력 후 버전 확인

    5. choco install mkcert 입력

    6. mkcert -install 입력 후 설치

    7. mkcert -caroot 인증서 창 확인 [공유금지] 

    8. mkcert localhost 127.0.0.1 ::1 도메인 도메인 도메인 입력

    9. cd 파일 확인

    10. .pem, key.pem 파일 복사 or 이동 [이동하는게 편함 프로젝트 상위 폴더나 따로 보관]

    11. xampp경우 httpd-ssl.conf 파일 수정

     

    SSLEngine on
    SSLCertificateFile "경로/경로/파일명.pem"
    SSLCertificateKeyFile "경로/경로/파일명.key.pem"
    
    <VirtualHost _default_:443>
        ##ServerAdmin webmaster@도메인
        DocumentRoot "C:/xampp/htdocs/프로젝트 경로"
        ServerName 도메인
    </VirtualHost>
    <VirtualHost _default_:443>
        ##ServerAdmin webmaster@도메인
        DocumentRoot "C:/xampp/htdocs/프로젝트 경로"
        ServerName 도메인
    </VirtualHost>
    <VirtualHost _default_:443>
        ##ServerAdmin webmaster@도메인
        DocumentRoot "C:/xampp/htdocs/프로젝트 경로"
        ServerName 도메인
    </VirtualHost>

    12. apache 서버 재시작

    13. 크롬 주소창 자물쇠 모양 확인

    'APM(ApachePhpMysql)' 카테고리의 다른 글

    die(), exit()  (0) 2024.09.20
    반복적인 데이터를 불러올 때(Jquery)  (0) 2024.09.11
    Short_open_tag  (0) 2024.09.04
    쿠키와 세션  (1) 2024.08.21
    APM설치  (0) 2024.08.13
Designed by Tistory.