{"id":1564,"date":"2024-07-20T18:25:18","date_gmt":"2024-07-20T09:25:18","guid":{"rendered":"https:\/\/hi3103.net\/notes\/?p=1564"},"modified":"2026-02-24T23:10:20","modified_gmt":"2026-02-24T14:10:20","slug":"mkcert%e3%82%92%e5%b0%8e%e5%85%a5%e3%81%99%e3%82%8b%ef%bc%88%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83%e3%81%b8%e3%81%aessl%e6%8e%a5%e7%b6%9a%ef%bc%89","status":"publish","type":"post","link":"https:\/\/hi3103.net\/notes\/dev\/1564","title":{"rendered":"mkcert \u3092\u5c0e\u5165\u3059\u308b\uff08\u30ed\u30fc\u30ab\u30eb\u958b\u767a\u74b0\u5883\u3078\u306eSSL\u63a5\u7d9a\uff09"},"content":{"rendered":"<h3>\u6982\u8981<\/h3>\n<ul>\n<li>\u30ed\u30fc\u30ab\u30eb\u958b\u767a\u74b0\u5883\u3067\u3082 SSL \u63a5\u7d9a\u3067\u30d6\u30e9\u30a6\u30b6\u30c1\u30a7\u30c3\u30af\u3092\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\uff08\u30d6\u30e9\u30a6\u30b6\u3067\u306e\u8b66\u544a\u304c\u51fa\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044\uff09\u3002<\/li>\n<li>mkcert \u3092\u4f7f\u3063\u3066\u3001\u30db\u30b9\u30c8\u5074\u306b\u8a8d\u8a3c\u5c40\u3092\u8a2d\u3051\u3001\u81ea\u5df1\u8a3c\u660e\u66f8\u3092\u767a\u884c\u3059\u308b\u3053\u3068\u3067\u4e0a\u8a18\u3092\u9054\u6210\u3059\u308b\u3002<\/li>\n<li>\u672c\u30a8\u30f3\u30c8\u30ea\u30fc\u3067\u306f\u4e0b\u6e96\u5099\u3068\u3057\u3066\u5fc5\u8981\u306a mkcert \u306e\u5c0e\u5165\u624b\u9806\u3092\u8a18\u8f09\u3059\u308b\u3002<\/li>\n<\/ul>\n<h3>\u5bfe\u8c61\u30d1\u30c3\u30b1\u30fc\u30b8<\/h3>\n<blockquote>\n<p>GitHub &#8211; FiloSottile\/mkcert: A simple zero-config tool to make locally trusted development certificates with any names you&#8217;d like.<br \/>\n<a href=\"https:\/\/github.com\/FiloSottile\/mkcert\">https:\/\/github.com\/FiloSottile\/mkcert<\/a> <\/p>\n<\/blockquote>\n<p><!--more--><\/p>\n<h3>\u5c0e\u5165\u624b\u9806<\/h3>\n<h4>Windows \u306e\u5834\u5408<\/h4>\n<p>Chocolatray \u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u3002\u7ba1\u7406\u8005\u6a29\u9650\u3067 Windows PowerShell \u3092\u8d77\u52d5\u3057\u3066\u4ee5\u4e0b\u3092\u5b9f\u884c\u3002<\/p>\n<ol>\n<li>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre><code class=\"language-powershell\">choco upgrade chocolatey<\/code><\/pre>\n<pre><code class=\"language-powershell\">choco install mkcert<\/code><\/pre>\n<\/li>\n<li>\n<p>mkcert\u3067\u30ed\u30fc\u30ab\u30eb\u8a8d\u8a3c\u5c40\u3092\u4f5c\u6210<\/p>\n<pre><code class=\"language-powershell\">mkcert -install<\/code><\/pre>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8b66\u544a\u304c\u3067\u3066\u304f\u308b\u306e\u3067\u3001[\u306f\u3044] \u3092\u62bc\u4e0b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hi3103.net\/notes\/img\/uploads\/2024\/07\/2407-mkcert_install_windows.png\" alt=\"\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8b66\u544a\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u3002\u767a\u884c\u8005\u304c\u6b21\u3066\u3042\u308b\u3068\u4e3b\u3059\u308b\u8a3c\u660e\u6a5f\u9582 (CA) \u304b\u3089\u8a3c\u660e\u66f8\u3092\u30a4\u30f3\u30b9\u30c8 \u30fc \u30eb\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3059\u3001\u3068\u3044\u3063\u305f\u5185\u5bb9\u304c\u66f8\u3044\u3066\u3042\u308b\u3002\" width=\"413\" height=\"367\"  \/><\/p>\n<p>\u5b8c\u4e86\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u8868\u793a\u304c\u3067\u308b\u3002<\/p>\n<pre><code class=\"language-powershell\">PS C:\\Windows\\system32&gt; mkcert -install\nThe local CA is now installed in the system trust store! \u26a1\ufe0f\nNote: Firefox support is not available on your platform. \u2139\ufe0f<\/code><\/pre>\n<\/li>\n<\/ol>\n<h4>macOS \u306e\u5834\u5408<\/h4>\n<p>Homebrew \u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u3002Terminal \u304b\u3089\u4ee5\u4e0b\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<ol>\n<li>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre><code class=\"language-powershell\">brew update<\/code><\/pre>\n<pre><code class=\"language-powershell\">brew install mkcert<\/code><\/pre>\n<\/li>\n<li>\n<p>mkcert\u3067\u30ed\u30fc\u30ab\u30eb\u8a8d\u8a3c\u5c40\u3092\u4f5c\u6210<\/p>\n<pre><code class=\"language-powershell\">mkcert -install<\/code><\/pre>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u305d\u306e\u307e\u307e\u5b8c\u4e86\u3057\u3066\u4ee5\u4e0b\u306e\u8868\u793a\u304c\u3067\u308b\u3002<\/p>\n<pre><code class=\"language-powershell\">$ mkcert -install\nThe local CA is already installed in the system trust store! \ud83d\udc4d<\/code><\/pre>\n<\/li>\n<\/ol>\n<h5>Firefox\u306b\u5bfe\u5fdc\u3059\u308b\u5834\u5408<\/h5>\n<p><code>mkcert<\/code> \u306b\u52a0\u3048\u3066 <code>nss<\/code> \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u3002<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u524d\u306b <code>mkcert -install<\/code> \u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u8b66\u544a\u6587\u304c\u4f75\u8a18\u3055\u308c\u308b\u3002<\/p>\n<pre><code>Warning: \"certutil\" is not available, so the CA can't be automatically installed in Firefox! \u26a0\ufe0f\nInstall \"certutil\" with \"brew install nss\" and re-run \"mkcert -install\" \ud83d\udc48<\/code><\/pre>\n<p>\u6307\u793a\u306b\u5f93\u3063\u3066 <code>nss<\/code> \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306b\u518d\u5ea6\u5b9f\u884c\u3059\u308b\u3068\u3001Firefox\u306b\u3082\u5bfe\u5fdc\u3067\u304d\u305f\u65e8\u304c\u8868\u793a\u3055\u308c\u308b\uff08\u30d6\u30e9\u30a6\u30b6\u518d\u8d77\u52d5\u306f\u5fc5\u8981\uff09\u3002<\/p>\n<pre><code>brew install nss<\/code><\/pre>\n<pre><code>% mkcert -install \nThe local CA is already installed in the system trust store! \ud83d\udc4d\nThe local CA is now installed in the Firefox trust store (requires browser restart)! \ud83e\udd8a<\/code><\/pre>\n<h3>\u5099\u8003<\/h3>\n<h4>WSL2 \u74b0\u5883\u3067\u958b\u767a\u3059\u308b\u3068\u304d\u306e\u6ce8\u610f\u70b9<\/h4>\n<ul>\n<li>\u30b3\u30de\u30f3\u30c9\u7684\u306b\u306f macOS \u3068\u540c\u3058\u624b\u9806\u306b\u306a\u308b\u3002<\/li>\n<li>\u304c\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u8868\u793a\u30c1\u30a7\u30c3\u30af\u306f\u3001 Windows OS \u4e0a\u306e\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3092\u53c2\u7167\u3059\u308b\u5f62\u3002<\/li>\n<li>\u3068\u3044\u3046\u3053\u3068\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u8a8d\u8a3c\u5c40\u306e\u4f5c\u6210\u3082\u3001\u81ea\u5df1\u8a3c\u660e\u66f8\u306e\u767a\u884c\u3082\u3001Window OS \u5074\u3067\u64cd\u4f5c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\n<ul>\n<li>WSL2 \u4e0a\u3067\u4e0a\u8a18\u3092\u884c\u3063\u305f\u3068\u3057\u3066\u3082\u3001\u30ed\u30fc\u30ab\u30eb\u8a8d\u8a3c\u5c40\u306e\u78ba\u8a8d\u304c\u3067\u304d\u306a\u3044\u306e\u3067\u300c\u5b89\u5168\u3067\u306f\u306a\u3044\u30a2\u30af\u30bb\u30b9\u3067\u3059\uff01\u300d\u306e\u8b66\u544a\u304c\u51fa\u3066\u3057\u307e\u3046\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u30ed\u30fc\u30ab\u30eb\u958b\u767a\u74b0\u5883\u3067\u3082 SSL \u63a5\u7d9a\u3067\u30d6\u30e9\u30a6\u30b6\u30c1\u30a7\u30c3\u30af\u3092\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\uff08\u30d6\u30e9\u30a6\u30b6\u3067\u306e\u8b66\u544a\u304c\u51fa\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044\uff09\u3002 mkcert \u3092\u4f7f\u3063\u3066\u3001\u30db\u30b9\u30c8\u5074\u306b\u8a8d\u8a3c\u5c40\u3092\u8a2d\u3051\u3001\u81ea\u5df1\u8a3c\u660e\u66f8\u3092\u767a\u884c\u3059\u308b\u3053\u3068\u3067\u4e0a\u8a18\u3092\u9054\u6210\u3059\u308b\u3002 \u672c\u30a8\u30f3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[93],"tags":[64,103],"class_list":["post-1564","post","type-post","status-publish","format-standard","hentry","category-dev","tag-mac-os","tag-windows-11"],"_links":{"self":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts\/1564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/comments?post=1564"}],"version-history":[{"count":0,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts\/1564\/revisions"}],"wp:attachment":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/media?parent=1564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/categories?post=1564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/tags?post=1564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}