借助 mkcert 和批处理命令生成局域网证书
自动获取ipv4,一键生成很方便
cd /d %~dp0 ipconfig |find "IPv4" > ipv4 set /p a=<ipv4 del ipv4 for /f "tokens=2 delims=:" %%a in ("%a%") do (set a=%%a) mkcert.exe localhost 127.0.0.7 ::1 %a% del cert.pem del key.pem ren localhost+3.pem cert.pem ren localhost+3-key.pem key.pem pause
标签:证书,批处理,生成,mkcert,ipv4,局域网 From: https://www.cnblogs.com/HelloCreator/p/17448929.html