{"id":10793,"date":"2025-05-30T07:54:49","date_gmt":"2025-05-29T22:54:49","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=10793"},"modified":"2025-05-30T07:54:50","modified_gmt":"2025-05-29T22:54:50","slug":"post-10793","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2025\/05\/30\/post-10793\/","title":{"rendered":"TLS1.2\u3067\u901a\u4fe1\u3067\u304d\u308b\u304b\u78ba\u8a8d\u3059\u308bPowershell"},"content":{"rendered":"\n<p>Chrome\u306e\u958b\u767a\u8005\u6a5f\u80fd\u3067\u78ba\u8a8d\u3057\u305f\u307b\u3046\u304c\u78ba\u5b9f\u3067\u306f\u3042\u308b\u306e\u3060\u3051\u3069\u3001\u5927\u91cf\u306b\u30db\u30b9\u30c8\u304c\u3042\u308b\u3068\u3001\u5927\u5909\u306a\u306e\u3067\u3001Powershell\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3057\u3066\u307f\u305f\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u3001Powershell\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># TLS 1.2\u306e\u307f\u3092\u660e\u793a\u7684\u306b\u6709\u52b9\u5316\n&#91;Net.ServicePointManager]::SecurityProtocol = &#91;Net.SecurityProtocolType]::Tls12\n\n# \u901a\u4fe1\u30c6\u30b9\u30c8\u5148\n$url = \"https:\/\/\u30db\u30b9\u30c8\u540d\"\n\ntry {\n    $response = Invoke-WebRequest -Uri $url -UseBasicParsing -ErrorAction Stop\n    Write-Host \"TLS 1.2 \u3067 $url \u306b\u6b63\u5e38\u306b\u63a5\u7d9a\u3067\u304d\u307e\u3057\u305f\u3002\"\n} catch {\n    Write-Host \"TLS 1.2 \u3067 $url \u3078\u306e\u63a5\u7d9a\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\"\n    Write-Host $_.Exception.Message\n}<\/code><\/pre>\n\n\n\n<p>\u63a5\u7d9a\u5931\u6557\u3059\u308b\u3068\u3001\u63a5\u7d9a\u5931\u6557\u3057\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u3001\u3068\u3068\u3082\u306b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u3067\u308b\u3002<\/p>\n\n\n\n<p>\u300c[Net.SecurityProtocolType]::Tls12\u300d\u306e\u90e8\u5206\u306eTls12\u3092Tls11\u3084Tls13\u306b\u5909\u3048\u308b\u3053\u3068\u3067\u3001\u4ed6\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306e\u30c6\u30b9\u30c8\u3082\u3067\u304d\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Chrome\u306e\u958b\u767a\u8005\u6a5f\u80fd\u3067\u78ba\u8a8d\u3057\u305f\u307b\u3046\u304c\u78ba\u5b9f\u3067\u306f\u3042\u308b\u306e\u3060\u3051\u3069\u3001\u5927\u91cf\u306b\u30db\u30b9\u30c8\u304c\u3042\u308b\u3068\u3001\u5927\u5909\u306a\u306e\u3067\u3001Powershell\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3057\u3066\u307f\u305f\u3002 \u4ee5\u4e0b\u306f\u3001Powershell\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3002 \u63a5\u7d9a\u5931\u6557\u3059\u308b\u3068\u3001\u63a5\u7d9a\u5931\u6557\u3057\u305f\u30e1\u30c3\u30bb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,5,7],"tags":[13,238],"class_list":["post-10793","post","type-post","status-publish","format-standard","hentry","category-windows","category-tech","category-tech-memo","tag-powershell","tag-windows11"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/10793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=10793"}],"version-history":[{"count":1,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/10793\/revisions"}],"predecessor-version":[{"id":10794,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/10793\/revisions\/10794"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=10793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=10793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=10793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}