LoginSignup
2
2

More than 5 years have passed since last update.

aws-sdkでオレオレ証明書エラーを回避する方法

Posted at

実験用に立てたRiakCSに接続しようとするとSSL証明書絡みでエラーになる。
回避用のおまじない。

var https = require('https');
AWS.config.httpOptions = {
  agent: new https.Agent({
    rejectUnauthorized: false
  })
};
2
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
2
2