octo54 2023. 6. 1. 20:24
728x90

Ubuntu


  1. sudo apt-get install openjdk-11-jdk
  2. 서버 시간 맞추기
  • timedatectl
  • timedatectl list-timezones
  • sudo timedatectl set-timezone Asia/Seoul

Certbot + boot


  1. sudo certbot certonly --standalone
  2. sudo certbot certonly --webroot
  3. return 301 https://$host$request_uri;
  4. openssl pkcs12 -export -in fullchain.pem -inkey privkey.pem -out keystore.p12 -name tomcat -CAfile chain.pem -caname root
    server.ssl.key-store=classpath:keystore.p12
    server.ssl.key-store-type=PKCS12
    server.ssl.key-store-password=내가정한password

React + Spring Boot Set-Cookie


  1. SameSite : None
  2. Secure : true
  3. withCredential
  4. CORS
  5. httpOnly : true
728x90