How to entirely disable SSL certificate checks in Mercurial / TortoiseHg?

前端 未结 4 881
无人及你
无人及你 2020-12-13 09:14

I\'m looking for a way to make --insecure option the default one for any hg \\ TortoiseHg command.

Please don\'t write this is a bad practi

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-13 09:15

    If your goal is to eliminate certificate fingerprint warnings during push/pull, there's a better way to do this. Use the [hostfingerprints] in .hg/hgrc (or ~/.hgrc -- see comments).

    [hostfingerprints]
    server.example.org = 38:76:52:7c:87:26:9a:8f:4a:f8:d3:de:08:45:3b:ea:d6:4b:ee:cc
    

    This will eliminate the warnings without eliminating the security checks.

    Note: I see from your comments to another answer that you've already found this solution. I'm posting this anyway in case someone else has the same problem.

提交回复
热议问题