- 博客(6)
- 收藏
- 关注
原创 win11平替wmic的命令C++
wmic path win32_VideoController get Name == powershell -Command \"(Get-CimInstance Win32_VideoController).Name\。wmic cpu get name == powershell -Command \"(Get-CimInstance Win32_Processor).Name\"。wmic MemoryChip get Capacity == powershell -Command \"(Get-C
2026-03-04 16:50:28
26
原创 访问https://whois.pconline.com.cn/ipJson.jsp?json=true时报403,显示访问的http
缺少ssleay.dll这个动态库。
2026-03-03 15:18:14
357
原创 Windows下生成自签名证书
先下载git,下载好后桌面右键,打开"Open Git Bash Here" ,进去想要存放证书的目录,MSYS_NO_PATHCONV=1 openssl req -x509 -nodes -days 3650 \。将IP切换为需要生成证书的电脑IP。server.crt # 证书。server.key # 私钥。之后在当前目录会生成。
2026-02-06 08:58:56
48
原创 前后端设置https访问
先生成证书签名证书,用阿里云或腾讯云发布的合法证书都可以,本地测试可自定义生成证书,自定义证书生成命令:openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -config "E:\Git\Git\usr\ssl\openssl.cnf"将生成的cert.pem和key.pem放在vite.config.ts的同级目录下。在vite.config.js或vite.config.ts中添加一下语句。
2026-01-21 13:28:15
202
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅