柯南未能通过HTTPS上传到文物实例

发布于 2025-02-05 06:26:25 字数 1472 浏览 4 评论 0原文

目前,我已经通过System.YAML文件设置了文物

configVersion: 1
shared:
    security:
        exposeApplicationHeaders: true
    node:
        id: "*.example.com"
        ip: artifacts.example.com
    metrics:
        enabled: true
artifactory:
    #port: 8081
    tomcat:
        httpsConnector:
            enabled: true
            port: 8443
            certificateFile: "$JFROG_HOME/artifactory/var/etc/artifactory/security/trusted/server2.crt"
            certificateKeyFile: "$JFROG_HOME/artifactory/var/etc/artifactory/security/trusted/server.key"
frontend:
   featureToggler:
        commonProjects: true

,并且可以通过HTTPS访问端口8082上的WebView,

我创建了用于Conan trifacts的仓库,并生成了一个API键。然后使用“设置我”提示,我在开发机上运行以下命令 conan远程添加myremote https://artifacts.example.com:8081/artifactory/api/conan/myremote conan用户-P< apikey> -r myremote will

我从柯南那里获得以下错误,

ERROR: HTTPSConnectionPool(host='artifacts.example.com', port=8081): Max retries exceeded with url: /artifactory/api/conan/myremote/v1/ping (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1131)')))

Unable to connect to myremote=https://artifacts.example.com:8081/artifactory/api/conan/myremote
1. Make sure the remote is reachable or,
2. Disable it by using conan remote disable,
Then try again.

我尝试重复相同的步骤,但使用HTTP代替HTTP,所有这些都很好。我做错了什么,这不会让HTTPS访问工作?

Currently I have Artifactory set up through a system.yaml file

configVersion: 1
shared:
    security:
        exposeApplicationHeaders: true
    node:
        id: "*.example.com"
        ip: artifacts.example.com
    metrics:
        enabled: true
artifactory:
    #port: 8081
    tomcat:
        httpsConnector:
            enabled: true
            port: 8443
            certificateFile: "$JFROG_HOME/artifactory/var/etc/artifactory/security/trusted/server2.crt"
            certificateKeyFile: "$JFROG_HOME/artifactory/var/etc/artifactory/security/trusted/server.key"
frontend:
   featureToggler:
        commonProjects: true

And I'm able to access the webview on port 8082 through https just fine

I created a repo for conan artifacts and generated an api key. Then using the "set me up" prompt I ran the following commands on my dev machine
conan remote add myremote https://artifacts.example.com:8081/artifactory/api/conan/myremote
conan user -p <apikey> -r myremote will

I then get the following error from Conan

ERROR: HTTPSConnectionPool(host='artifacts.example.com', port=8081): Max retries exceeded with url: /artifactory/api/conan/myremote/v1/ping (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1131)')))

Unable to connect to myremote=https://artifacts.example.com:8081/artifactory/api/conan/myremote
1. Make sure the remote is reachable or,
2. Disable it by using conan remote disable,
Then try again.

I tried to repeat the same steps but using http instead of http and all worked fine. What am I doing wrong that won't let https access work?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文