LoginSignup
4
2

More than 5 years have passed since last update.

API Gateway のエンドポイントを nginx で reverse proxy したら"SSL_do_handshake() failed" と言われた

Posted at

元ネタ: Nginx reverse proxy error:14077438:SSL SSL_do_handshake() failed - Stack Overflow

proxy_pass の対象となるエンドポイントが SNI を使用している場合発生するっぽい(API Gateway がデフォルトで用意するエンドポイントは SNI 使ってるっぽい)

以下のように proxy_ssl_server_name on の設定を追加してあげたらOK

location /api/ {
  proxy_pass https://xxxxxxxx.execute-api.ap-northeast-1.amazonaws.com/Dev/api/;
  proxy_ssl_server_name on;
}
4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2