issue.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
  6. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" crossorigin="anonymous">
  7. <title>证书验证</title>
  8. <style type="text/css">
  9. body {
  10. overflow-x: hidden;
  11. background-color: #f7f7f7;
  12. padding: 0px 36px;
  13. }
  14. blockquote {
  15. border-left: 5px solid #c5c5c5;
  16. background-color: #f1f1f1;
  17. }
  18. .badge {
  19. background-color: #999;
  20. }
  21. code {
  22. cursor: pointer;
  23. }
  24. </style>
  25. </head>
  26. <body onContextMenu="return false;">
  27. <div>
  28. <h3>Firefox</h3>
  29. <blockquote>
  30. <h4>建立安全连接失败</h4>
  31. <p><small>连接到 github.com 时发生错误。对等端的证书有一个无效的签名。</small> </p>
  32. <p><small> 错误代码:SEC_ERROR_BAD_SIGNATURE</small> </p>
  33. </blockquote>
  34. <h4>解决办法</h4>
  35. <p>
  36. <span class="badge">1</span>
  37. <span>地址栏输入:</span><code>about:config</code>
  38. </p>
  39. <p>
  40. <span class="badge">2</span>
  41. <span>输入首选项名称:</span><code>security.enterprise_roots.enabled</code>
  42. </p>
  43. <p>
  44. <span class="badge">3</span>
  45. <span>修改值为:</span><code>true</code>
  46. </p>
  47. </div>
  48. <hr />
  49. <div>
  50. <h3>git.exe</h3>
  51. <blockquote>
  52. <h4>clone、pull或push等证书异常</h4>
  53. <p><small>fatal: unable to access 'https://github.com/xxx.git/'</small> </p>
  54. <p><small>SSL certificate problem: unable to get local issuer certificate</small> </p>
  55. </blockquote>
  56. <h4>解决办法</h4>
  57. <p>
  58. <span class="badge">1</span>
  59. <span>管理员身份运行:</span><code>cmd</code>
  60. </p>
  61. <p>
  62. <span class="badge">2</span>
  63. <span>在cmd输入:</span><code>git config --global http.sslverify false</code>
  64. </p>
  65. </div>
  66. <script type="text/javascript">
  67. var codes = document.getElementsByTagName('code');
  68. for (var i = 0; i < codes.length; i++) {
  69. var code = codes[i];
  70. code.setAttribute('title', '点击复制');
  71. code.onclick = function () {
  72. window.clipboardData.setData("Text", this.outerText);
  73. }
  74. }
  75. </script>
  76. </body>
  77. </html>