CMD 输入mmc 提交证书控制台
powershell运行下面代码生成证书
mainserver2 为服务器名字
记得host 添加服务器名字和IP对应
New-SelfSignedCertificate -DnsName "mainserver2" -CertStoreLocation "cert:\LocalMachine\My" -NotAfter (Get-Date).AddYears(20) -TestRoot New-SelfSignedCertificate -DnsName "mainserver" -CertStoreLocation "cert:\LocalMachine\My" -NotAfter (Get-Date).AddYears(20) -TestRoot
记得导出证书到另一台,TestRoot证书记得放进可以信任证书列表
两台服务器powershell运行
添加证书到信任列表都:
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\FailoverReplication" /v DisableCertRevocationCheck /d 1 /t REG_DWORD /f reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\Replication" /v DisableCertRevocationCheck /d 1 /t REG_DWORD /f
参考:
https://michaelfirsov.wordpress.com/hyper-v-replica-in-windows-server-2016-configuring-certificate-based-authentication-part1/
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...