{"id":8,"date":"2024-02-02T18:36:23","date_gmt":"2024-02-02T10:36:23","guid":{"rendered":"http:\/\/ishht.com\/?p=8"},"modified":"2024-02-02T18:39:04","modified_gmt":"2024-02-02T10:39:04","slug":"%e4%bd%bf%e7%94%a8mkcert%e5%b7%a5%e5%85%b7%e4%b8%baesxi6-7%e4%b8%bb%e6%9c%bahttps%e7%94%9f%e6%88%90%e5%ae%89%e5%85%a8%e8%ae%bf%e9%97%ae%e8%af%81%e4%b9%a6","status":"publish","type":"post","link":"https:\/\/ishht.com\/?p=8","title":{"rendered":"\u4f7f\u7528mkcert\u5de5\u5177\u4e3aESXI6.7\u4e3b\u673ahttps\u751f\u6210\u5b89\u5168\u8bbf\u95ee\u8bc1\u4e66"},"content":{"rendered":"<p>1\u3001\u73af\u5883<br \/>\nWindow10 192.168.1.102<\/p>\n<p>ESXI6.7 192.168.1.103<\/p>\n<p>\u5982\u56fe\uff0c\u8bbf\u95eeesxi6.7\u7684\u63a7\u5236\u7aef\u65f6\uff0c\u4f1a\u62a5\u8bbf\u95ee\u8fde\u63a5\u4e0d\u5b89\u5168\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ishht.com\/wp-content\/uploads\/2024\/02\/20200831010752548-300x88.png\" alt=\"\" width=\"300\" height=\"88\" class=\"alignnone size-medium wp-image-9\" srcset=\"https:\/\/ishht.com\/wp-content\/uploads\/2024\/02\/20200831010752548-300x88.png 300w, https:\/\/ishht.com\/wp-content\/uploads\/2024\/02\/20200831010752548.png 554w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u8be5\u95ee\u9898\u5e76\u4e0d\u5f71\u54cd\u4f7f\u7528\uff0c\u800c\u4e14\u4e00\u822c\u6211\u4eec\u662f\u901a\u8fc7vcenter\u53bb\u7ba1\u7406esxi\u4e3b\u673a\u7684\uff0c\u4f46\u662f\u5728\u5176\u4ed6\u4e00\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u4f7f\u7528https\u5f00\u53d1\u81ea\u5df1\u672c\u5730\u7684\u7a0b\u5e8f\u7684\u65f6\u5019\uff0c\u5982\u679c\u8981\u901a\u8fc7\u7a0b\u5e8f\u53bb\u6d4b\u8bd5https\u7684\u771f\u5b9e\u73af\u5883\uff0c\u8fd9\u79cd\u65b9\u5f0f\u5c31\u4e0d\u5931\u4e3a\u4e00\u79cd\u5f88\u597d\u7684\u89e3\u51b3\u529e\u6cd5\u3002<\/p>\n<p>\u65b9\u6cd5\u5c31\u662f\u5728\u6211\u4eecwindow10\u672c\u5730\uff0c\u4e3aesxi\u4e3b\u673a\u901a\u8fc7mkcert\u521b\u5efa\u8bc1\u4e66\uff0c\u7136\u540e\u5012\u5165\u8bc1\u4e66\u5230esxi\u4e3b\u673a\u5373\u53ef\u3002<\/p>\n<p>2\u3001Window\u4e0a\u5b89\u88c5mkcert<br \/>\n\u641c\u7d22\u6846\u8f93\u5165cmd\u9009\u62e9\u4ee5\u7ba1\u7406\u5458\u8fd0\u884c\uff1a<\/p>\n<p>\u51fa\u6765\u7684\u63a7\u5236\u53f0\u8f93\u5165\uff1aPowerShell\uff0c<\/p>\n<p>\u7136\u540e\u5728\u8f93\u5165\uff1aGet-ExecutionPolicy\uff0c<\/p>\n<p>\u5982\u679c\u8f93\u51fa\u7ed3\u679c\u662f\uff1aRestricted\uff0c<\/p>\n<p>\u5c31\u63a5\u7740\u8f93\u5165\uff1aSet-ExecutionPolicy AllSigned\uff0c<\/p>\n<p>\u7136\u540e\u5728\u8f93\u5165\uff1a<\/p>\n<p>Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(&#8216;https:\/\/chocolatey.org\/install.ps1&#8217;))<\/p>\n<p>\u7136\u540e\u6d4b\u8bd5choco\u662f\u5426\u5b89\u88c5\u6210\u529f\uff0c\u76f4\u63a5\u8f93\u5165choco\u3002<\/p>\n<p>\u770b\u5230\u7248\u672c\u5c31\u8868\u793a\u5b89\u88c5\u6210\u529f\u4e86\u3002<\/p>\n<p>\u7136\u540e\u91cd\u65b0\u6253\u5f00\u4e00\u4e2acmd\u7684\u7ba1\u7406\u5458\u7a97\u53e3\uff0c\u8f93\u5165\uff1achoco install mkcert<\/p>\n<p>\u7136\u540e\u5728\u8f93\u5165\uff1amkcert -install<\/p>\n<p>3\u3001\u751f\u6210esxi\u8bc1\u4e66<br \/>\n\u7136\u540e\u5c31\u4e3a\u6211\u4eecesxi\u4e3b\u673a\u751f\u4ea7\u8bc1\u4e66\u6587\u4ef6\uff1a<\/p>\n<p>mkcert www.esxi.com 192.168.1.103<\/p>\n<p>\u57df\u540d\u968f\u4fbf\u8d77\uff0c\u56e0\u4e3a\u540e\u9762\u6211\u4eec\u901a\u8fc7\u672c\u5730\u7684hosts\u6587\u4ef6\u6765\u89e3\u6790\u57df\u540d\u3002Ip\u5c31\u662fesxi\u4e3b\u673a\u7684\u7ba1\u7406ip.<\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u63d0\u793a\u8bc1\u4e66\u751f\u6210\u5728\u4e86\uff1aC:\\Users\\Administrator\\AppData\\Local\\mkcert\u76ee\u5f55\u3002<\/p>\n<p>\u901a\u8fc7ssh\u8fde\u63a5esxi\u4e3b\u673a\uff0c\u6ce8\u610f\u524d\u63d0\u662f\u9700\u8981\u5f00\u542fesxi\u4e3b\u673a\u7684ssh\u670d\u52a1\uff0c\u9ed8\u8ba4\u662f\u5173\u95ed\u7684\u3002<\/p>\n<p>\u56de\u8f66\u5373\u53ef\u4ee5enable ssh\u3002<\/p>\n<p>4\u3001\u4e0a\u4f20\u8bc1\u4e66\u5230esxi\u4e3b\u673a<br \/>\n\u8fde\u63a5\u5230sftp\uff0c\u4e0a\u4f20www.esxi.com+1.pem\u548cwww.esxi.com+1-key.pem\u6587\u4ef6\uff08\u8fd9\u4e24\u4e2a\u6587\u4ef6\u5c31\u662f\u521a\u624d\u6267\u884cmkcert\u5728\u672c\u5730window10\u751f\u6210\u7684\u8bc1\u4e66\u6587\u4ef6\uff09\u5230esxi\u4e3b\u673a\u7684\/etc\/vmware\/ssl\/\u76ee\u5f55\u91cc\u9762<\/p>\n<p>lcd C:\\Users\\Administrator\\AppData\\Local\\mkcert<\/p>\n<p>cd \/etc\/vmware\/ssl<\/p>\n<p>put www.esxi*<\/p>\n<p>5\u3001\u5907\u4efd\u539fesxi\u4e3b\u673a\u8bc1\u4e66<br \/>\n\u5c06\u539f\u6765esxi\u7684\u8bc1\u4e66\u6587\u4ef6\u5907\u4efd\u5230\u672c\u5730\uff0c\u7136\u540e\u5220\u9664\u3002<\/p>\n<p>rm -f \/etc\/vmware\/ssl\/rui.crt<\/p>\n<p>rm -f \/etc\/vmware\/ssl\/rui.key<\/p>\n<p>\u6ce8\u610f\uff1a\u8981\u5c06\u539f\u8bc1\u4e66\u5907\u4efd\u5230\u672c\u5730\uff0c\u5982\u679c\u53ea\u662f\u901a\u8fc7mv rui.crt rui.crt_bak\u8fd9\u6837\u5907\u4efd\u5728\u539f\u76ee\u5f55\uff0c\u8fd9\u4e2a\u5907\u4efd\u6587\u4ef6\u5728\u91cd\u542fesxi\u4e3b\u673a\u540e\u5c31\u6ca1\u4e86\u3002<\/p>\n<p>6\u3001\u4fee\u6539\u4e0a\u4f20\u6587\u4ef6\u4e3a\u65b0\u8bc1\u4e66<br \/>\n\u5c06\u6211\u4eec\u521a\u624d\u4e0a\u4f20\u7684\u4e24\u4e2a\u6587\u4ef6\u5206\u522b\u6539\u540d\u6210rui.crt\u548crui.key<\/p>\n<p>#cd \/etc\/vmware\/ssl\/<\/p>\n<p>#mv www.esxi.com+1-key.pem rui.key<\/p>\n<p>#mv www.esxi.com+1.pem rui.crt<\/p>\n<p>7\u3001\u91cd\u542f\u4f7f\u8bc1\u4e66\u751f\u6548<br \/>\n\u7136\u540e\u91cd\u542fesxi\u4e3b\u673a\u3002<\/p>\n<p># reboot<\/p>\n<p>8\u3001\u6dfb\u52a0\u672c\u5730hosts\u89e3\u6790<br \/>\n\u91cd\u542f\u5b8c\u540e\uff0c\u5728\u6211\u4eecwindows10\u672c\u5730\u6dfb\u52a0hosts\u57df\u540d\u89e3\u6790\u3002<\/p>\n<p>\u4fee\u6539C:\\Windows\\System32\\drivers\\etc\\hosts\u6587\u4ef6\uff0c\u6dfb\u52a0\u5982\u4e0b\u8bb0\u5f55\uff1a<\/p>\n<p>192.168.1.103 www.esxi.com<\/p>\n<p>\u8fd9\u4e2a\u8bb0\u5f55\u5c31\u662f\u6211\u4eec\u4f7f\u7528mkcert\u751f\u4ea7\u8bc1\u4e66\u7684\u65f6\u5019\u5bf9\u5e94\u7684ip\u548c\u57df\u540d\u3002<\/p>\n<p>\u7136\u540e\u6211\u4eec\u5c1d\u8bd5\u8bbf\u95eeesxi\u7684\u7ba1\u7406\u7aef\u3002<\/p>\n<p>9\u3001\u5c1d\u8bd5\u6d4b\u8bd5\u8bbf\u95eeesxi<\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u4e0d\u7ba1\u662f\u901a\u8fc7\u57df\u540d\u8fd8\u662fip\u8bbf\u95eeesxi\uff0c\u73b0\u5728\u90fd\u663e\u793a\u8fde\u63a5\u662f\u5b89\u5168\u7684\uff0c\u8bc1\u4e66\u662f\u6709\u6548\u7684\u3002<br \/>\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n<p>\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u535a\u4e3b\u539f\u521b\u6587\u7ae0\uff0c\u9075\u5faa CC 4.0 BY-SA \u7248\u6743\u534f\u8bae\uff0c\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u539f\u6587\u51fa\u5904\u94fe\u63a5\u548c\u672c\u58f0\u660e\u3002<\/p>\n<p>\u539f\u6587\u94fe\u63a5\uff1ahttps:\/\/blog.csdn.net\/kadwf123\/article\/details\/108314038<div class=\"sc-loginshow\"><div class=\"sc-loginshow__note\">\u672c\u5185\u5bb9\u9700\u8981\u767b\u5f55\u540e\u67e5\u770b<\/div><div class=\"sc-loginshow__action\"><button class=\"sc-loginshow__btn need-login-btn\">\u767b\u5f55\u67e5\u770b<\/button><\/div><\/div><\/p>\n\n\t\t<style>\n\t\t\t#gallery-1 {\n\t\t\t\tmargin: auto;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-item {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\twidth: 33%;\n\t\t\t}\n\t\t\t#gallery-1 img {\n\t\t\t\tborder: 2px solid #cfcfcf;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-caption {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t\t\/* see gallery_shortcode() in wp-includes\/media.php *\/\n\t\t<\/style>\n\t\t<div id='gallery-1' class='gallery galleryid-8 gallery-columns-3 gallery-size-thumbnail'><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/ishht.com\/?attachment_id=9'><img loading=\"lazy\" decoding=\"async\" width=\"96\" height=\"96\" src=\"https:\/\/ishht.com\/wp-content\/uploads\/2024\/02\/20200831010752548-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/dt><\/dl>\n\t\t\t<br style='clear: both' \/>\n\t\t<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u73af\u5883 Window10 192.168.1.102 ESXI6.7 192.168.1.103 \u5982\u56fe\uff0c\u8bbf\u95eeesxi6.7\u7684\u63a7\u5236\u7aef\u65f6\uff0c\u4f1a\u62a5\u8bbf\u95ee\u8fde\u63a5\u4e0d\u5b89\u5168\u3002 \u8be5\u95ee\u9898\u5e76\u4e0d\u5f71\u54cd\u4f7f\u7528\uff0c\u800c\u4e14\u4e00\u822c\u6211\u4eec\u662f\u901a\u8fc7vcenter\u53bb\u7ba1\u7406esxi\u4e3b\u673a\u7684\uff0c\u4f46\u662f\u5728\u5176\u4ed6\u4e00\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u4f7f\u7528https\u5f00\u53d1\u81ea\u5df1\u672c\u5730\u7684\u7a0b\u5e8f\u7684\u65f6\u5019\uff0c\u5982\u679c\u8981\u901a\u8fc7\u7a0b\u5e8f\u53bb\u6d4b\u8bd5https\u7684\u771f\u5b9e\u73af\u5883\uff0c\u8fd9\u79cd\u65b9\u5f0f\u5c31\u4e0d\u5931\u4e3a\u4e00\u79cd\u5f88\u597d\u7684\u89e3\u51b3\u529e\u6cd5\u3002 \u65b9\u6cd5\u5c31\u662f\u5728\u6211\u4eecwindow10\u672c\u5730\uff0c\u4e3aesxi\u4e3b\u673a\u901a\u8fc7mkcert\u521b\u5efa\u8bc1\u4e66\uff0c\u7136\u540e\u5012\u5165\u8bc1\u4e66\u5230esxi\u4e3b\u673a\u5373\u53ef\u3002 2\u3001Window\u4e0a\u5b89\u88c5mkcert \u641c\u7d22\u6846\u8f93\u5165cmd\u9009\u62e9\u4ee5\u7ba1\u7406\u5458\u8fd0\u884c\uff1a \u51fa\u6765\u7684\u63a7\u5236\u53f0\u8f93\u5165\uff1aPowerShell\uff0c \u7136\u540e\u5728\u8f93\u5165\uff1aGet-ExecutionPolicy\uff0c \u5982\u679c\u8f93\u51fa\u7ed3\u679c\u662f\uff1aRestricted\uff0c \u5c31\u63a5\u7740\u8f93\u5165\uff1aSet-ExecutionPolicy AllSigned\uff0c \u7136\u540e\u5728\u8f93\u5165\uff1a Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(&#8216;https:\/\/chocolatey.org\/install.ps1&#8217;)) \u7136\u540e\u6d4b\u8bd5choco\u662f\u5426\u5b89\u88c5\u6210\u529f\uff0c\u76f4\u63a5\u8f93\u5165choco\u3002 \u770b\u5230\u7248\u672c\u5c31\u8868\u793a\u5b89\u88c5\u6210\u529f\u4e86\u3002 \u7136\u540e\u91cd\u65b0\u6253\u5f00\u4e00\u4e2acmd\u7684\u7ba1\u7406\u5458\u7a97\u53e3\uff0c\u8f93\u5165\uff1achoco install mkcert \u7136\u540e\u5728\u8f93\u5165\uff1amkcert -install 3\u3001\u751f\u6210esxi\u8bc1\u4e66 \u7136\u540e\u5c31\u4e3a\u6211\u4eecesxi\u4e3b\u673a\u751f\u4ea7\u8bc1\u4e66\u6587\u4ef6\uff1a mkcert www.esxi.com 192.168.1.103 \u57df\u540d\u968f\u4fbf\u8d77\uff0c\u56e0\u4e3a\u540e\u9762\u6211\u4eec\u901a\u8fc7\u672c\u5730\u7684hosts\u6587\u4ef6\u6765\u89e3\u6790\u57df\u540d\u3002Ip\u5c31\u662fesxi\u4e3b\u673a\u7684\u7ba1\u7406ip. \u53ef\u4ee5\u770b\u5230\u63d0\u793a\u8bc1\u4e66\u751f\u6210\u5728\u4e86\uff1aC:\\Users\\Administrator\\AppData\\Local\\mkcert\u76ee\u5f55\u3002 \u901a\u8fc7ssh\u8fde\u63a5esxi\u4e3b\u673a\uff0c\u6ce8\u610f\u524d\u63d0\u662f\u9700\u8981\u5f00\u542fesxi\u4e3b\u673a\u7684ssh\u670d\u52a1\uff0c\u9ed8\u8ba4\u662f\u5173\u95ed\u7684\u3002 \u56de\u8f66\u5373\u53ef\u4ee5enable ssh\u3002 4\u3001\u4e0a\u4f20\u8bc1\u4e66\u5230esxi\u4e3b\u673a \u8fde\u63a5\u5230sftp\uff0c\u4e0a\u4f20www.esxi.com+1.pem\u548cwww.esxi.com+1-key.pem\u6587\u4ef6\uff08\u8fd9\u4e24\u4e2a\u6587\u4ef6\u5c31\u662f\u521a\u624d\u6267\u884cmkcert\u5728\u672c\u5730window10\u751f\u6210\u7684\u8bc1\u4e66\u6587\u4ef6\uff09\u5230esxi\u4e3b\u673a\u7684\/etc\/vmware\/ssl\/\u76ee\u5f55\u91cc\u9762 lcd C:\\Users\\Administrator\\AppData\\Local\\mkcert cd \/etc\/vmware\/ssl put www.esxi* 5\u3001\u5907\u4efd\u539fesxi\u4e3b\u673a\u8bc1\u4e66 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-es"],"_links":{"self":[{"href":"https:\/\/ishht.com\/index.php?rest_route=\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ishht.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ishht.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ishht.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ishht.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8"}],"version-history":[{"count":1,"href":"https:\/\/ishht.com\/index.php?rest_route=\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":10,"href":"https:\/\/ishht.com\/index.php?rest_route=\/wp\/v2\/posts\/8\/revisions\/10"}],"wp:attachment":[{"href":"https:\/\/ishht.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ishht.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ishht.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}