DBILITY

react localhost secure http test environment configuration 본문

front-end & ui/react

react localhost secure http test environment configuration

DBILITY 2022. 1. 26. 11:03
반응형

OpenSSL설치

http://slproweb.com/products/Win32OpenSSL.html

 

Win32/Win64 OpenSSL Installer for Windows - Shining Light Productions

Minimum system requirements: Windows XP or later 32MB RAM 200MHz CPU 30MB hard drive space Recommended system requirements: Windows XP or later 128MB RAM 500MHz CPU 300MB hard drive space September 9, 2021 - OpenSSL 3.0 is available. Users should currently

slproweb.com

cert생성

PS C:\Dev64\workspace\project> openssl req -x509 -newkey rsa:2048 -keyout keytmp.pem -out cert.pem -days 365
PS C:\Dev64\workspace\project> openssl rsa -in keytmp.pem -out key.pem

package.json ( react 17.0.2 )

  "scripts": {
    "start": "set HTTPS=true&&set SSL_CRT_FILE=cert.pem&&set SSL_KEY_FILE=key.pem&&react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
반응형

'front-end & ui > react' 카테고리의 다른 글

react router v6  (0) 2022.02.15
react qrcode modern-react-qr-reader  (0) 2022.02.08
react qr-reader v17  (0) 2022.01.23
react' must be in scope when using jsx react/react-in-jsx-scope react 17  (0) 2022.01.06
react Context  (0) 2022.01.06
Comments