인증서 에러 문제가 나오면
1. eclipse 인증서 에러 문제가 나오면
1) 연결되는 웹사이트에 들어가서 chrome의 경우 ctrl+shift+i 를 누르고 Security 탭을 클릭한 뒤 인증서를 다운로드 받는다.
(C:\CA 폴더에 spring.cer 파일명으로 저장했다고 하면)
2) cd C:\CA 경로로 들어가 관리자권한의 cmd를 연다.
3) PEM 확장자로 변환 : openssl x509 -inform der -in spring.cer -out spring.pem
4) jdk keytool명령어(jdk설치폴더의 bin안에 keytool.exe가 있음)로 jre의 인증파일에 추가해준다.
: keytool -importcert -alias proxy -file spring.cer -keystore "C:\Program Files\Java\jre1.8.0_181\lib\security\cacerts"
- 비밀번호 입력이 나오면 기본비밀번호가 오른쪽과 같이 설정되어있다. Password=changeit
5) 결과
이 인증서를 신뢰합니까? [아니오]: y <--입력
인증서가 키 저장소에 추가되었습니다.
2. node.js 에서 npm install 404에러발생
- 에러 :
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-57_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-57_binding.node": HTTP error 404 Not Found Hint: If github.com is not accessible in your location try setting a proxy via HTTP_PROXY, e.g. |
- 해결 : npm install 시도폴더에 있는 package.json 파일을 수정해준다.
안에보면 devDependencies 부분에 "gulp-sass": "^2.2.0" 라고 되어있는부분의 버전을 "gulp-sass": "^3.1.0"로 수정해준다.
3. npm 인증서 셋팅
openssl x509 -inform der -in github.cer -out github.pem
#For Windows/MacOS/Linux
npm config set cafile "C:\CA\kolon.pem"
#Check the 'cafile'
npm config get cafile
4. npm install 시 UNABLE_TO_VERIFY_LEAF_SIGNATURE 에러가 나오면(SSL 사용안하겠다는건데 안전과는 무관하여..)
==> npm config set strict-ssl false
5. 위와같이 했는데 또 UNABLE_TO_VERIFY_LEAF_SIGNATURE 에러가 발생한다..
==> npm install 을 시도했던 폴더에 보면 .bowerrc 라는 파일이 있다
이 파일에 다음을 추가하자.
"strict-ssl": false
그런 후 다시 npm install 을 하면 잘 돌아간다.