Do Not Think!!!

Posted
Filed under 01010101
모질라재단 추천 설정

ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';


SSL 설정 테스트
사용자 삽입 이미지

Posted
Filed under 01010101
Let's Encrypt 관리 명령어 업데이트

기존 업데이트 방법: https://dont.pe.kr/tc/507

새로운 방법
$ /sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install python-certbot-nginx

설치
$ sudo certbot --nginx -d dont.pe.kr -d www.dont.pe.kr

업데이트
$ sudo certbot renew --dry-run


Posted
Filed under 01010101
맥에서 eclipse 실행시 ~/.bash_profile 에 설정해놓은 환경변수가 적용 안되는 버그

증상
1. 맥에서 eclipse 실행
2. gradle 스크립트 중 commandLine task 에서
3. command 를 찾지 못하는 문제 발생

해결
eclipse 실행 스크립트 생성해서 dock 에 등록

참고
https://apple.stackexchange.com/a/51737
Posted
Filed under 01010101
server {
    ...

    location / {
        proxy_pass ...
        proxy_set_header   Host $host;
        proxy_set_header   X-Real-IP $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}
Posted
Filed under 01010101
$ sudo .local/share/letsencrypt/bin/letsencrypt renew
Posted
Filed under 01010101
Eclipse 4.6.1 버전에서 Package Exploere - 파일 선택 -  Open With 메뉴 선택 하면 멈추는 현상

<workspace>/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs
파일 내용 중
resourcetypes  부분을 제거 하면 해결
Posted
Filed under 01010101
Add
$ iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

Delete
$ iptables -t nat -D PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
Posted
Filed under 01010101
AWS EC2 + Ubuntu 14.04 + OpenJDK 8 + AWS SDK Java 이용해서 S3 접속하면 PKIX SSL 에러 발생

Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387) ~[na:1.8.0_91]    at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292) ~[na:1.8.0_91]    at sun.security.validator.Validator.validate(Validator.java:260) ~[na:1.8.0_91]    at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) ~[na:1.8.0_91]    at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) ~[na:1.8.0_91]    at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) ~[na:1.8.0_91]    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491) ~[na:1.8.0_91]    ... 99 common frames omittedCaused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target    at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) ~[na:1.8.0_91]    at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) ~[na:1.8.0_91]    at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) ~[na:1.8.0_91]    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382) ~[na:1.8.0_91]    ... 105 common frames omitted

해결방법
$ sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure


참고
http://stackoverflow.com/a/30699960


Posted
Filed under 01010101
$ hostnamectl set-hostname new_hostname

$ vi /etc/hosts
127.0.0.1 new_hostname