简体   繁体   English

如何导出 SonarQube 的完整证书链?

[英]How to export the full certificate chain for SonarQube?

I am facing the error while trying to do a maven-sonarqube scan我在尝试进行 maven-sonarqube 扫描时遇到错误

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project Gloria: Unable to execute SonarScanner analysis: Fail to get bootstrap index from server: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1] [错误]无法在项目 Gloria 上执行目标 org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli):无法执行 SonarScanner 分析:无法从服务器获取引导索引:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求目标的有效证书路径 -> [帮助 1]

I found a solution here , but how to export the the certificate?我在这里找到了解决方案,但如何导出证书? From where?从哪里? Can someone please explain this more lucidly.有人可以更清楚地解释一下吗?

This link gives the proper and full answer链接给出了正确和完整的答案

First you will need to create a certificate.首先,您需要创建一个证书。 To do that follow these steps:为此,请执行以下步骤:

  1. Open an HTTPS connection to the URL (ie https://www.example.com/ , https://saas.whitesourcesoftware.com/ in the browser在浏览器中打开一个 HTTPS 连接到 URL(即https://www.example.com/ , https://saas.whitesourcesoftware.com/

  2. Press F12 to access the browser's Developer Tools按 F12 访问浏览器的开发者工具

  3. Go to the 'Security' tab Go 到“安全”选项卡

  4. Click 'View certificate'点击“查看证书”

  5. In the Certificate details window, go to the 'Details' tab在证书详细信息 window、go 到“详细信息”选项卡

  6. Click 'Export'点击“导出”

  7. Make sure the file format is: 'Base64-encoded ASCII, single certificate (*.pem, *.crt)'确保文件格式为:'Base64-encoded ASCII, single certificate (*.pem, *.crt)'

  8. Name the file: Windows: 'whitesourcesoftware.com.crt' (Mac OS: 'whitesourcesoftware.com.cer')为文件命名:Windows:'whitesourcesoftware.com.crt'(Mac OS:'whitesourcesoftware.com.cer')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM