{"id":151,"date":"2021-10-19T15:13:47","date_gmt":"2021-10-19T06:13:47","guid":{"rendered":"https:\/\/software.satoshis.jp\/?p=151"},"modified":"2021-10-20T16:21:51","modified_gmt":"2021-10-20T07:21:51","slug":"ubuntu%e3%81%aelaravel%e3%81%a7-error141a318assl-routinestls_process_ske_dhedh-key-too-small-%e3%81%8c%e7%99%ba%e7%94%9f%e3%81%97%e3%81%9f%e3%81%a8%e3%81%8d%e3%81%ae%e5%af%be%e7%ad%96","status":"publish","type":"post","link":"https:\/\/software.satoshis.jp\/?p=151","title":{"rendered":"Ubuntu\u306eLaravel\u3067 error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small \u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306e\u5bfe\u7b56"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/software.satoshis.jp\/wp-content\/uploads\/2021\/10\/openssl-logo.png\" alt=\"\" width=\"480\" height=\"270\" class=\"alignnone size-full wp-image-152\" \/><\/p>\n<p>\u3042\u308b\u30b5\u30a4\u30c8\u3092 CentOS\u3000\u306e VPS \u304b\u3089\u3001\u65b0\u3057\u304f\u4f5c\u6210\u3057\u305f Ubuntu \u306e VPS\u3000\u306b\u5f15\u3063\u8d8a\u3057\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001500\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>laravel.log \u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nfile_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:\r\nerror:141A318A:SSL routines:tls_process_ske_dhe:dh key too small {&quot;exception&quot;:&quot;&#x5B;object] (ErrorException(code: 0): file_get_contents(): SSL operation failed with code 1. \r\n<\/pre>\n<p>\u3050\u3050\u3063\u3066\u307f\u305f\u3089\u3001openssl \u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u305f\u3089\u89e3\u6c7a\u3067\u304d\u308b\u3089\u3057\u3044\u3002<\/p>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u306f\u3001 \/etc\/ssl\/openssl.cnf \u3068\u66f8\u3044\u3066\u3042\u308b\u30b5\u30a4\u30c8\u3068 \/usr\/lib\/ssl\/openssl.cnf \u3068\u66f8\u3044\u3066\u3042\u308b\u30b5\u30a4\u30c8\u304c\u3042\u3063\u305f\u308a\u3057\u305f\u3002<\/p>\n<p>\u3069\u3061\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u6b63\u3057\u3044\u306e\u304b\u78ba\u8a8d\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3063\u3066\u3001\u3068\u308a\u3042\u3048\u305a ls \u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nls -la \/usr\/lib\/ssl\/openssl.cnf\r\nlrwxrwxrwx 1 root root 20 Aug 24 02:02 \/usr\/lib\/ssl\/openssl.cnf -&gt; \/etc\/ssl\/openssl.cnf\r\n<\/pre>\n<p>\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3057\u3066\u308b\u3060\u3051\u3067\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001 \/etc\/ssl\/openssl.cnf \u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u306b\u4ee5\u4e0b\u306e\u5185\u5bb9(openssl_conf = &#8230; \u306e\u884c\u304b\u3089 CipherString = &#8230; \u306e\u884c\u307e\u3067)\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nopenssl_conf = default_conf\r\n\r\n&#x5B; default_conf ]\r\nssl_conf = ssl_sect\r\n\r\n&#x5B; ssl_sect ]\r\nsystem_default = system_default_sect\r\n\r\n&#x5B; system_default_sect ]\r\nMinProtocol = TLSv1.2\r\nCipherString = DEFAULT:@SECLEVEL=1\r\n\r\n#\r\n# OpenSSL example configuration file.\r\n# This is mostly being used for generation of certificate requests.\r\n#\r\n(\u4ee5\u4e0b\u7565)\r\n<\/pre>\n<p>\u3053\u308c\u3067\u30a8\u30e9\u30fc\u306f\u51fa\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u8981\u306fTLS\u306e\u30ad\u30fc\u304c\u77ed\u3059\u304e\u308b\u3088\u3068\u6012\u3089\u308c\u305f\u306e\u3067\u3001\u77ed\u3044\u30ad\u30fc\u3067\u3082\u6012\u3089\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u306e\u3067\u3059\u3002<\/p>\n<p>\u30db\u30f3\u30c8\u306b\u305d\u308c\u3067\u3044\u3044\u3093\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30ec\u30d9\u30eb\u3092\u4e0b\u3052\u3066\u3057\u307e\u3063\u305f\u306e\u306f\u307e\u305a\u3044\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n<p>\u5fd9\u3057\u3044\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u306f\u73fe\u72b6\u306e\u5bfe\u51e6\u306b\u3057\u3066\u304a\u3044\u3066\u3001\u3042\u3068\u3067\u6642\u9593\u304c\u3042\u308b\u3068\u304d\u306b\u3067\u3082\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3042\u308b\u30b5\u30a4\u30c8\u3092 CentOS\u3000\u306e VPS \u304b\u3089\u3001\u65b0\u3057\u304f\u4f5c\u6210\u3057\u305f Ubuntu \u306e VPS\u3000\u306b\u5f15\u3063\u8d8a\u3057\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001500\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002 laravel.log \u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":152,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[55,14,54,50],"class_list":["post-151","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-dh-key-too-small","tag-laravel","tag-openssl","tag-ubuntu"],"nelio_content":{"autoShareEndMode":"never","automationSources":{"useCustomSentences":false,"customSentences":[]},"efiAlt":"","efiUrl":"","followers":[1],"highlights":[],"isAutoShareEnabled":true,"networkImageIds":[],"permalinkQueryArgs":[],"series":[],"suggestedReferences":[]},"views":3330,"_links":{"self":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=151"}],"version-history":[{"count":3,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/151\/revisions"}],"predecessor-version":[{"id":155,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/151\/revisions\/155"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/media\/152"}],"wp:attachment":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}