dongmaoxi0477 2012-07-20 21:54
浏览 158

AWS SDK for PHP可以在不禁用osx的SSL验证的情况下工作吗?

The problem: Try to communicate with s3 via aws sdk for php and you get this: "cURL error: SSL peer certificate or SSH remote key was not OK (cURL error code 51)."

Often suggested is to disable ssl verification in development. However, equal nuisance seeing as now the sdk throws a warning about it being unsafe to disable ssl verification. I can't disable warnings in PHP in my dev environment.

What are my options?

http://curl.haxx.se/docs/sslcerts.html solutions (aside from the 1st suggestion?!) would require modification of the sdk.

I have confirmed via sdk_compatibility_test.php that I have "7.26.0 (OpenSSL/1.0.1c)" when what isi required is "7.15.0 or newer, with SSL". In addition, I have installed php's openssl module as confirmed by php info.

I've even tried pointing "certificate_authority" to various crt files to no avail. Usually resulting in a new error: "cURL error: SSL certificate problem: self signed certificate in certificate chain (cURL error code 60)"

This year old answer doesn't appear to help either.

  • 写回答

1条回答 默认 最新

  • doubo4336 2012-07-21 02:41
    关注

    The problem stems mostly from using s3 bucket names with multiple dots.

    $s3instance->path_style = true;
    

    See: Lengthy discussion on aws forums

    评论

报告相同问题?

悬赏问题

  • ¥15 目详情-五一模拟赛详情页
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 unity第一人称射击小游戏,有demo,在原脚本的基础上进行修改以达到要求
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b