conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
948 stars 1.73k forks source link

[OPENJDK] openjdk/19.0.2 : installation failed with certificate verify failed: unable to get local issuer certificate #25280

Open vreddy10 opened 4 days ago

vreddy10 commented 4 days ago

Description

When the Conan revisions is set CONAN_REVISIONS_ENABLED=1 trying to install openjdk/19.0.2 fails with below error

ERROR: openjdk/19.0.2: Error in build() method, line 39
        get(self, **self.conan_data["sources"][self.version][str(key)],
        ConanException: Error downloading file https://download.java.net/java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip: 'HTTPSConnectionPool(host='download.java.net', port=443): Max retries exceeded with url: /java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))'

Package and Environment Details

C:\Users>set CONAN_REVISIONS_ENABLED=1

C:\Users>conan remote list conancenter: https://center.conan.io [Verify SSL: False]

C:\Users>conan install openjdk/19.0.2@ -r conancenter

WARN: ** WARN: * Conan 1 is legacy and on a deprecation path ** WARN: ***** Please upgrade to Conan 2 **** WARN: ** Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=Visual Studio compiler.runtime=MD compiler.version=16 os=Windows os_build=Windows [options] [build_requires] [env]

openjdk/19.0.2: Retrieving from server 'conancenter' openjdk/19.0.2: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.10k] Downloading conanfile.py completed [3.55k] Downloading conan_export.tgz completed [0.59k] Decompressing conan_export.tgz completed [0.00k] openjdk/19.0.2: Downloaded recipe revision 06e56f0ff1a749c568802e8d6868835c openjdk/19.0.2: Building package from source as defined by build_policy='missing' Installing package: openjdk/19.0.2 Requirements openjdk/19.0.2 from 'conancenter' - Downloaded Packages openjdk/19.0.2:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Build

Installing (downloading, building) binaries... openjdk/19.0.2: Configuring sources in C:\Users\vreddy10.conan\data\openjdk\19.0.2__\source openjdk/19.0.2: Copying sources to build folder openjdk/19.0.2: Building your package in C:\Users\vreddy10.conan\data\openjdk\19.0.2__\build\ca33edce272a279b24f87dc0d4cf5bbdcffbc187 openjdk/19.0.2: Generator txt created conanbuildinfo.txt openjdk/19.0.2: Aggregating env generators openjdk/19.0.2: Calling build() openjdk/19.0.2: ERROR: Error downloading file https://download.java.net/java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip: 'HTTPSConnectionPool(host='download.java.net', port=443): Max retries exceeded with url: /java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (ssl.c:997)')))' openjdk/19.0.2: Waiting 5 seconds to retry... openjdk/19.0.2: openjdk/19.0.2: ERROR: Package 'ca33edce272a279b24f87dc0d4cf5bbdcffbc187' build failed openjdk/19.0.2: WARN: Build folder C:\Users\vreddy10.conan\data\openjdk\19.0.2_\\build\ca33edce272a279b24f87dc0d4cf5bbdcffbc187 ERROR: openjdk/19.0.2: Error in build() method, line 39 get(self, **self.conan_data["sources"][self.version][str(key)], ConanException: Error downloading file https://download.java.net/java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip: 'HTTPSConnectionPool(host='download.java.net', port=443): Max retries exceeded with url: /java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))'

C:\Users>

Conan profile

[settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=Visual Studio compiler.runtime=MD compiler.version=16 os=Windows os_build=Windows [options] [build_requires] [env]

Steps to reproduce

set CONAN_REVISIONS_ENABLED=1
conan remote list
conancenter: https://center.conan.io [Verify SSL: False]
conan install openjdk/19.0.2@ -r conancenter

Logs

C:\Users>set CONAN_REVISIONS_ENABLED=1

C:\Users>conan remote list conancenter: https://center.conan.io [Verify SSL: False]

C:\Users>conan install openjdk/19.0.2@ -r conancenter

WARN: ** WARN: * Conan 1 is legacy and on a deprecation path ** WARN: ***** Please upgrade to Conan 2 **** WARN: ** Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=Visual Studio compiler.runtime=MD compiler.version=16 os=Windows os_build=Windows [options] [build_requires] [env]

openjdk/19.0.2: Retrieving from server 'conancenter' openjdk/19.0.2: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.10k] Downloading conanfile.py completed [3.55k] Downloading conan_export.tgz completed [0.59k] Decompressing conan_export.tgz completed [0.00k] openjdk/19.0.2: Downloaded recipe revision 06e56f0ff1a749c568802e8d6868835c openjdk/19.0.2: Building package from source as defined by build_policy='missing' Installing package: openjdk/19.0.2 Requirements openjdk/19.0.2 from 'conancenter' - Downloaded Packages openjdk/19.0.2:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Build

Installing (downloading, building) binaries... openjdk/19.0.2: Configuring sources in C:\Users\vreddy10.conan\data\openjdk\19.0.2__\source openjdk/19.0.2: Copying sources to build folder openjdk/19.0.2: Building your package in C:\Users\vreddy10.conan\data\openjdk\19.0.2__\build\ca33edce272a279b24f87dc0d4cf5bbdcffbc187 openjdk/19.0.2: Generator txt created conanbuildinfo.txt openjdk/19.0.2: Aggregating env generators openjdk/19.0.2: Calling build() openjdk/19.0.2: ERROR: Error downloading file https://download.java.net/java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip: 'HTTPSConnectionPool(host='download.java.net', port=443): Max retries exceeded with url: /java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (ssl.c:997)')))' openjdk/19.0.2: Waiting 5 seconds to retry... openjdk/19.0.2: openjdk/19.0.2: ERROR: Package 'ca33edce272a279b24f87dc0d4cf5bbdcffbc187' build failed openjdk/19.0.2: WARN: Build folder C:\Users\vreddy10.conan\data\openjdk\19.0.2_\\build\ca33edce272a279b24f87dc0d4cf5bbdcffbc187 ERROR: openjdk/19.0.2: Error in build() method, line 39 get(self, **self.conan_data["sources"][self.version][str(key)], ConanException: Error downloading file https://download.java.net/java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip: 'HTTPSConnectionPool(host='download.java.net', port=443): Max retries exceeded with url: /java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))'

C:\Users>

vreddy10 commented 4 days ago

The below output is when conan revisions is set to "0"

C:\Users>set CONAN_REVISIONS_ENABLED=0

C:\Users>conan install openjdk/19.0.2@ -r conancenter

WARN: ** WARN: * Conan 1 is legacy and on a deprecation path ** WARN: ***** Please upgrade to Conan 2 **** WARN: ** Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=Visual Studio compiler.runtime=MD compiler.version=16 os=Windows os_build=Windows [options] [build_requires] [env]

openjdk/19.0.2: WARN: Package binary is corrupted, removing: ca33edce272a279b24f87dc0d4cf5bbdcffbc187 Installing package: openjdk/19.0.2 Requirements openjdk/19.0.2 from 'conancenter' - Cache Packages openjdk/19.0.2:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Download

Installing (downloading, building) binaries... openjdk/19.0.2: Retrieving package ca33edce272a279b24f87dc0d4cf5bbdcffbc187 from remote 'conancenter' Downloading conanmanifest.txt completed [31.73k] Downloading conaninfo.txt completed [0.30k] Downloading conan_package.tgz completed [185552.17k] Decompressing conan_package.tgz completed [0.00k] openjdk/19.0.2: Package installed ca33edce272a279b24f87dc0d4cf5bbdcffbc187 openjdk/19.0.2: Downloaded package revision 0 openjdk/19.0.2: Creating JAVAHOME environment variable with : C:\Users\vreddy10.conan\data\openjdk\19.0.2_\\package\ca33edce272a279b24f87dc0d4cf5bbdcffbc187 Aggregating env generators WARN: Revisions are disabled. Using Conan without revisions enabled is deprecated

WARN: ** WARN: * Conan 1 is legacy and on a deprecation path ** WARN: ***** Please upgrade to Conan 2 ****

uilianries commented 4 days ago

@vreddy10 Hello! I can not reproduce your error, actually, I can download the exactly same recipe revision and package ID as described in your issue:

conan install openjdk/19.0.2@ -r conancenter -s os=Windows

WARN: **************************************************
WARN: *** Conan 1 is legacy and on a deprecation path **
WARN: *********** Please upgrade to Conan 2 ************
WARN: **************************************************
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=11
os=Windows
os_build=Linux
[options]
[build_requires]
[env]

openjdk/19.0.2: Retrieving from server 'conancenter' 
openjdk/19.0.2: Trying with 'conancenter'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [3.55k]                                               
Downloading conan_export.tgz completed [0.59k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
openjdk/19.0.2: Downloaded recipe revision 06e56f0ff1a749c568802e8d6868835c
openjdk/19.0.2: Building package from source as defined by build_policy='missing'
Installing package: openjdk/19.0.2
Requirements
    openjdk/19.0.2 from 'conancenter' - Downloaded
Packages
    openjdk/19.0.2:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Build

Cross-build from 'Linux:x86_64' to 'Windows:x86_64'
Installing (downloading, building) binaries...
openjdk/19.0.2: Configuring sources in /home/conan/.conan/data/openjdk/19.0.2/_/_/source
openjdk/19.0.2: Copying sources to build folder
openjdk/19.0.2: Building your package in /home/conan/.conan/data/openjdk/19.0.2/_/_/build/ca33edce272a279b24f87dc0d4cf5bbdcffbc187
openjdk/19.0.2: Generator txt created conanbuildinfo.txt
openjdk/19.0.2: Aggregating env generators
openjdk/19.0.2: Calling build()
Downloading openjdk-19.0.2_windows-x64_bin.zip completed [189898.08k]                    openjdk/19.0.2: /19.0.2: openjdk/19.0.2: 
openjdk/19.0.2: 
openjdk/19.0.2: Unzipping 324.8MB, this can take a while
Unzipping 100 %                                                       openjdk/19.0.2: 
openjdk/19.0.2: Package 'ca33edce272a279b24f87dc0d4cf5bbdcffbc187' built
openjdk/19.0.2: Build folder /home/conan/.conan/data/openjdk/19.0.2/_/_/build/ca33edce272a279b24f87dc0d4cf5bbdcffbc187
openjdk/19.0.2: Generated conaninfo.txt
openjdk/19.0.2: Generated conanbuildinfo.txt
openjdk/19.0.2: Generating the package
openjdk/19.0.2: Package folder /home/conan/.conan/data/openjdk/19.0.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187
openjdk/19.0.2: Calling package()
openjdk/19.0.2: Copied 36 '.exe' files
openjdk/19.0.2: Copied 84 '.dll' files
openjdk/19.0.2: Copied 2 '.jsa' files: classes_nocoops.jsa, classes.jsa
openjdk/19.0.2: Copied 11 '.h' files
openjdk/19.0.2: Copied 2 '.dat' files: tzdb.dat, public_suffix_list.dat
openjdk/19.0.2: Copied 1 '.ja' file: psfont.properties.ja
openjdk/19.0.2: Copied 1 '.src' file: fontconfig.properties.src
openjdk/19.0.2: Copied 1 '.bfc' file: fontconfig.bfc
openjdk/19.0.2: Copied 1 '.jar' file: jrt-fs.jar
openjdk/19.0.2: Copied 1 '.sym' file: ct.sym
openjdk/19.0.2: Copied 2 '.lib' files: jawt.lib, jvm.lib
openjdk/19.0.2: Copied 1 '.zip' file: src.zip
openjdk/19.0.2: Copied 4 files: classlist, tzmappings, modules, cacerts
openjdk/19.0.2: Copied 1 '.cfg' file: jvm.cfg
openjdk/19.0.2: Copied 1 '.properties' file: psfontj2d.properties
openjdk/19.0.2: Copied 1 '.policy' file: default.policy
openjdk/19.0.2: Copied 1 '.certs' file: blocked.certs
openjdk/19.0.2: Copied 2 '.jfc' files: default.jfc, profile.jfc
openjdk/19.0.2: Copied 71 '.jmod' files
openjdk/19.0.2: Copied 213 files
openjdk/19.0.2: Copied 32 '.md' files
openjdk/19.0.2: Copied 4 '.properties' files: net.properties, sound.properties, logging.properties, management.properties
openjdk/19.0.2: Copied 6 '.policy' files
openjdk/19.0.2: Copied 1 '.security' file: java.security
openjdk/19.0.2: Copied 1 '.txt' file: README.txt
openjdk/19.0.2: Copied 1 '.access' file: jmxremote.access
openjdk/19.0.2: Copied 1 '.template' file: jmxremote.password.template
openjdk/19.0.2 package(): Packaged 217 files
openjdk/19.0.2 package(): Packaged 32 '.md' files
openjdk/19.0.2 package(): Packaged 2 '.dat' files: tzdb.dat, public_suffix_list.dat
openjdk/19.0.2 package(): Packaged 1 '.ja' file: psfont.properties.ja
openjdk/19.0.2 package(): Packaged 1 '.src' file: fontconfig.properties.src
openjdk/19.0.2 package(): Packaged 1 '.bfc' file: fontconfig.bfc
openjdk/19.0.2 package(): Packaged 1 '.jar' file: jrt-fs.jar
openjdk/19.0.2 package(): Packaged 1 '.sym' file: ct.sym
openjdk/19.0.2 package(): Packaged 2 '.lib' files: jawt.lib, jvm.lib
openjdk/19.0.2 package(): Packaged 1 '.zip' file: src.zip
openjdk/19.0.2 package(): Packaged 1 '.cfg' file: jvm.cfg
openjdk/19.0.2 package(): Packaged 5 '.properties' files
openjdk/19.0.2 package(): Packaged 7 '.policy' files
openjdk/19.0.2 package(): Packaged 1 '.certs' file: blocked.certs
openjdk/19.0.2 package(): Packaged 2 '.jfc' files: default.jfc, profile.jfc
openjdk/19.0.2 package(): Packaged 71 '.jmod' files
openjdk/19.0.2 package(): Packaged 36 '.exe' files
openjdk/19.0.2 package(): Packaged 84 '.dll' files
openjdk/19.0.2 package(): Packaged 2 '.jsa' files: classes_nocoops.jsa, classes.jsa
openjdk/19.0.2 package(): Packaged 11 '.h' files
openjdk/19.0.2 package(): Packaged 1 '.security' file: java.security
openjdk/19.0.2 package(): Packaged 1 '.txt' file: README.txt
openjdk/19.0.2 package(): Packaged 1 '.access' file: jmxremote.access
openjdk/19.0.2 package(): Packaged 1 '.template' file: jmxremote.password.template
openjdk/19.0.2: Package 'ca33edce272a279b24f87dc0d4cf5bbdcffbc187' created
openjdk/19.0.2: Created package revision be2509f1739f793889aeb46cec9d1fd4
openjdk/19.0.2: Creating JAVA_HOME environment variable with : /home/conan/.conan/data/openjdk/19.0.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187

Still, you current error is related to the certificate SSL when downloading only:

'HTTPSConnectionPool(host='download.java.net', port=443): Max retries exceeded with url: /java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))'

It could be a temporary error. Or, you are behind a proxy of your company that's affecting you.

I would suggest you trying to download the OpenJDK file directly, using wget or similar:

wget -vvv https://download.java.net/java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip
--2024-09-16 12:43:56--  https://download.java.net/java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip
Resolving download.java.net (download.java.net)... 23.194.22.87
Connecting to download.java.net (download.java.net)|23.194.22.87|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 194455638 (185M) [application/zip]
Saving to: ‘openjdk-19.0.2_windows-x64_bin.zip’

openjdk-19.0.2_windows-x64_bin.zip                          100%[=========================================================================================================================================>] 185.45M  2.49MB/s    in 47s     

2024-09-16 12:44:43 (3.92 MB/s) - ‘openjdk-19.0.2_windows-x64_bin.zip’ saved [194455638/194455638]

You can also see the current certificate available for download.java.net, no problems at all:

echo | openssl s_client -servername download.java.net -connect download.java.net:443 2>/dev/null
CONNECTED(00000003)
---
Certificate chain
 0 s:C = US, ST = California, L = Redwood City, O = Oracle Corporation, CN = download.oracle.com
   i:C = US, O = DigiCert Inc, CN = DigiCert TLS RSA SHA256 2020 CA1
   a:PKEY: id-ecPublicKey, 256 (bit); sigalg: RSA-SHA256
   v:NotBefore: Apr  6 00:00:00 2024 GMT; NotAfter: Apr  9 23:59:59 2025 GMT
 1 s:C = US, O = DigiCert Inc, CN = DigiCert TLS RSA SHA256 2020 CA1
   i:C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert Global Root CA
   a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256
   v:NotBefore: Apr 14 00:00:00 2021 GMT; NotAfter: Apr 13 23:59:59 2031 GMT
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIGvDCCBaSgAwIBAgIQBkJyj6FrmMmnYhzqieJMgTANBgkqhkiG9w0BAQsFADBP
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMSkwJwYDVQQDEyBE
aWdpQ2VydCBUTFMgUlNBIFNIQTI1NiAyMDIwIENBMTAeFw0yNDA0MDYwMDAwMDBa
Fw0yNTA0MDkyMzU5NTlaMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9y
bmlhMRUwEwYDVQQHEwxSZWR3b29kIENpdHkxGzAZBgNVBAoTEk9yYWNsZSBDb3Jw
b3JhdGlvbjEcMBoGA1UEAxMTZG93bmxvYWQub3JhY2xlLmNvbTBZMBMGByqGSM49
AgEGCCqGSM49AwEHA0IABFliFfO84/eFjNF2S+vJwVtUTgb6Fa3gbIUrWJwdCRlm
Pta6IxmBkrHcFjeLrzJNGCB7M4khbmEvauc0nJMYyqejggQ4MIIENDAfBgNVHSME
GDAWgBS3a6LqqKqEjHnqtNoPmLLFlXa59DAdBgNVHQ4EFgQUFoWbGuEmH9CAUASb
Sq7n5y7/q+Awgd4GA1UdEQSB1jCB04ITZG93bmxvYWQub3JhY2xlLmNvbYITc2Rs
Yy1lc2Qub3JhY2xlLmNvbYIWZXBkLWFrYW0tdXMub3JhY2xlLmNvbYIYZXBkLWFr
YW0taW50bC5vcmFjbGUuY29tghZlcGQtYWthbS1jYS5vcmFjbGUuY29tghdkb3du
bG9hZC52aXJ0dWFsYm94Lm9yZ4IRZG93bmxvYWQuamF2YS5uZXSCC2RsYy5zdW4u
Y29tgg9kbGMtY2RuLnN1bi5jb22CE2FydS1ha2FtLm9yYWNsZS5jb20wPgYDVR0g
BDcwNTAzBgZngQwBAgIwKTAnBggrBgEFBQcCARYbaHR0cDovL3d3dy5kaWdpY2Vy
dC5jb20vQ1BTMA4GA1UdDwEB/wQEAwIDiDAdBgNVHSUEFjAUBggrBgEFBQcDAQYI
KwYBBQUHAwIwgY8GA1UdHwSBhzCBhDBAoD6gPIY6aHR0cDovL2NybDMuZGlnaWNl
cnQuY29tL0RpZ2lDZXJ0VExTUlNBU0hBMjU2MjAyMENBMS00LmNybDBAoD6gPIY6
aHR0cDovL2NybDQuZGlnaWNlcnQuY29tL0RpZ2lDZXJ0VExTUlNBU0hBMjU2MjAy
MENBMS00LmNybDB/BggrBgEFBQcBAQRzMHEwJAYIKwYBBQUHMAGGGGh0dHA6Ly9v
Y3NwLmRpZ2ljZXJ0LmNvbTBJBggrBgEFBQcwAoY9aHR0cDovL2NhY2VydHMuZGln
aWNlcnQuY29tL0RpZ2lDZXJ0VExTUlNBU0hBMjU2MjAyMENBMS0xLmNydDAMBgNV
HRMBAf8EAjAAMIIBfwYKKwYBBAHWeQIEAgSCAW8EggFrAWkAdwBOdaMnXJoQwzhb
bNTfP1LrHfDgjhuNacCx+mSxYpo53wAAAY6wzCydAAAEAwBIMEYCIQDUeqTO3SK9
BNytjkH1HT4B5a5kO8W8rwa1ecm9JFqP1wIhAKH1lg3yQK5eu0NYQmnEISdnk2m/
g4LEveqUzL87/IqqAHYAfVkeEuF4KnscYWd8Xv340IdcFKBOlZ65Ay/ZDowuebgA
AAGOsMws2gAABAMARzBFAiEA5YRVmagRsYULoIoUy61kq9tehcm60GiAw8mNdYQh
JqwCIBU71kykKR1NKNcg7ofaQlTTDh8ZtFbzPFqydmL60Z0DAHYA5tIxY0B3jMEQ
QQbXcbnOwdJA9paEhvu6hzId/R43jlAAAAGOsMws6wAABAMARzBFAiA7QvazE6UC
nim8vxIVGtjkEJ0mccFSl3t/y3z8h3OyKQIhALvv5owfSL+MG1UcdYlQeOpKgdtC
tZhGC9BSEajZ+pY1MA0GCSqGSIb3DQEBCwUAA4IBAQCRIMpt3R9m3LtZ3r+cbkCk
wp8zGjruGKemzUbJVabfOiPl8dl+xVDZfFuBJRLXCV7TSUv00ajQMZJnIDgjodu9
MGhm7UruWn5xf9V6Q62SPEKOjs6uUxXq3YsBtpKwvnr8ehWt5l5oIlzX/6j0mVUu
2ZEvVQuuATykDmI6mqE4reghs0jjZk63bEAnjgbyrEdcZ96AkQ1IVTH95q9Frzig
b8+KdpGfMnmBVBHzofYVJ96W/sfJ2KUsd7Mc4sBT9MzZuwbp5ZMlV275cf+bwKzY
0UndkHp3Kxfj7cv3KwM3o2syMgMECmUDAdQxZqg40XyzGl1M5EB7l5GB5i8uGmWF
-----END CERTIFICATE-----
subject=C = US, ST = California, L = Redwood City, O = Oracle Corporation, CN = download.oracle.com
issuer=C = US, O = DigiCert Inc, CN = DigiCert TLS RSA SHA256 2020 CA1
---
No client certificate CA names sent
Peer signing digest: SHA256
Peer signature type: ECDSA
Server Temp Key: X25519, 253 bits
---
SSL handshake has read 3336 bytes and written 399 bytes
Verification: OK
---
New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384
Server public key is 256 bit
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
---
vreddy10 commented 4 days ago

@uilianries Hello!,

The Conan profile settings are different from the one I have shared. The OS is Windows.

Moreover, the wget option will not work as we use the Conan package installation and configuration using the Conan command/API.

I'm just reiterating the steps I followed to reproduce the problem.

Step 1: Open the Windows command prompt.

Step 2: Run the following command to check the details Command:

conan profile show default

Output of Conan profile:

[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.version=16
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

Step 3: Set the Conan revisions to true

Command to set Conan revisions

set CONAN_REVISIONS_ENABLED=1

Step-4: Check "https://center.conan.io" is available in the remote list Command:

conan remote list

conancenter: https://center.conan.io [Verify SSL: False]

Step-5: Please try below command to install openkdk/19.0.2 Command:

conan install openjdk/19.0.2@ -r conancenter
viswacareer1 commented 3 days ago

@uilianries Hello!

I was able to download the OpenJDK package of the same Version Without issue earlier.

Command

conan install openjdk/19.0.2@#e4804108078e169cd4f035c465ffefe1 -r conancenter

Output

C:\Users\vreddy10>conan install openjdk/19.0.2@#e4804108078e169cd4f035c465ffefe1 -r conancenter

WARN: **************************************************
WARN: *** Conan 1 is legacy and on a deprecation path **
WARN: *********** Please upgrade to Conan 2 ************
WARN: **************************************************
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.version=16
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

openjdk/19.0.2: Retrieving from server 'conancenter'
openjdk/19.0.2: Trying with 'conancenter'...
Downloading conanmanifest.txt completed [0.10k]
Downloading conanfile.py completed [3.47k]
Downloading conan_export.tgz completed [0.59k]
Decompressing conan_export.tgz completed [0.00k]
openjdk/19.0.2: Downloaded recipe revision e4804108078e169cd4f035c465ffefe1
Installing package: openjdk/19.0.2
Requirements
    openjdk/19.0.2 from 'conancenter' - Downloaded
Packages
    openjdk/19.0.2:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Download

Installing (downloading, building) binaries...
openjdk/19.0.2: Retrieving package ca33edce272a279b24f87dc0d4cf5bbdcffbc187 from remote 'conancenter'
Downloading conanmanifest.txt completed [31.73k]
Downloading conaninfo.txt completed [0.30k]
Downloading conan_package.tgz completed [185552.17k]
Decompressing conan_package.tgz completed [0.00k]
openjdk/19.0.2: Package installed ca33edce272a279b24f87dc0d4cf5bbdcffbc187
openjdk/19.0.2: Downloaded package revision 35447d8f7776c8dbed176c099cc01efa
openjdk/19.0.2: Creating JAVA_HOME environment variable with : C:\Users\vreddy10\.conan\data\openjdk\19.0.2\_\_\package\ca33edce272a279b24f87dc0d4cf5bbdcffbc187
Aggregating env generators

WARN: **************************************************
WARN: *** Conan 1 is legacy and on a deprecation path **
WARN: *********** Please upgrade to Conan 2 ************
WARN: **************************************************
uilianries commented 1 day ago

@viswacareer1 Thank you for sharing that's working again!

vreddy10 commented 1 day ago

@uilianries

Hello!

The issue is still not resolved with the latest revision.

C:\Users\VREDDY10>conan install openjdk/19.0.2@ -r conan-center

WARN: ** WARN: * Conan 1 is legacy and on a deprecation path ** WARN: ***** Please upgrade to Conan 2 **** WARN: ** Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=Visual Studio compiler.runtime=MD compiler.version=16 os=Windows os_build=Windows [options] [build_requires] [env]

openjdk/19.0.2: Retrieving from server 'conan-center' openjdk/19.0.2: Trying with 'conan-center'... Downloading conanmanifest.txt completed [0.10k] Downloading conanfile.py completed [3.55k] Downloading conan_export.tgz completed [0.59k] Decompressing conan_export.tgz completed [0.00k] openjdk/19.0.2: Downloaded recipe revision 06e56f0ff1a749c568802e8d6868835c openjdk/19.0.2: Building package from source as defined by build_policy='missing' Installing package: openjdk/19.0.2 Requirements openjdk/19.0.2 from 'conan-center' - Downloaded Packages openjdk/19.0.2:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Build

Installing (downloading, building) binaries... openjdk/19.0.2: Configuring sources in C:\Users\VREDDY10.conan\data\openjdk\19.0.2__\source openjdk/19.0.2: Copying sources to build folder openjdk/19.0.2: Building your package in C:\Users\VREDDY10.conan\data\openjdk\19.0.2__\build\ca33edce272a279b24f87dc0d4cf5bbdcffbc187 openjdk/19.0.2: Generator txt created conanbuildinfo.txt openjdk/19.0.2: Aggregating env generators openjdk/19.0.2: Calling build() openjdk/19.0.2: ERROR: Error downloading file https://download.java.net/java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip: 'HTTPSConnectionPool(host='download.java.net', port=443): Max retries exceeded with url: /java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (ssl.c:997)')))' openjdk/19.0.2: Waiting 5 seconds to retry... openjdk/19.0.2: openjdk/19.0.2: ERROR: Package 'ca33edce272a279b24f87dc0d4cf5bbdcffbc187' build failed openjdk/19.0.2: WARN: Build folder C:\Users\VREDDY10.conan\data\openjdk\19.0.2_\\build\ca33edce272a279b24f87dc0d4cf5bbdcffbc187 ERROR: openjdk/19.0.2: Error in build() method, line 39 get(self, **self.conan_data["sources"][self.version][str(key)], ConanException: Error downloading file https://download.java.net/java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip: 'HTTPSConnectionPool(host='download.java.net', port=443): Max retries exceeded with url: /java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))'

C:\Users\VREDDY10>

uilianries commented 1 day ago

@viswacareer1 Sorry, it was not clear for me. Re-opening it.

The Conan profile settings are different from the one I have shared. The OS is Windows.

The OpenJDK package is agnostic to the compiler, the only matters is the host OS, which means, you can configure your profile to download the Windows package independent of your build OS. In my case, I used Linux, but I downloaded the exactly package ID as you tried, the same expected package. The Package ID immutable and reflects settings + options + dependencies. So, in my case I can download from Linux, it should work for any OS as well. You can try the same if you have another OS available.

What Conan version are you running exactly? What's the output of conan --version command? I tested using Conan 1.65.0. I also recommend you migrating to Conan 2.x asap, since it was released 19 months ago and Conan 1.x is in the way of deprecation. In Conan 2.x you could disable the SSL verification via command line or configuration, but it's not available in Conan 1.x such feature.

Still, I executed the same command in Windows, only to be sure, the result the is exactly same as in Linux for me, everything is working:

λ conan install openjdk/19.0.2@ -r conancenter

WARN: **************************************************
WARN: *** Conan 1 is legacy and on a deprecation path **
WARN: *********** Please upgrade to Conan 2 ************
WARN: **************************************************
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.version=16
os=Windows
os_build=Windows
[options]
[build_requires]
*: cmake/3.30.1
[env]

openjdk/19.0.2: Retrieving from server 'conancenter'
openjdk/19.0.2: Trying with 'conancenter'...
Downloading conanmanifest.txt completed [0.10k]
Downloading conanfile.py completed [3.55k]
Downloading conan_export.tgz completed [0.59k]
Decompressing conan_export.tgz completed [0.00k]
openjdk/19.0.2: Downloaded recipe revision 06e56f0ff1a749c568802e8d6868835c
openjdk/19.0.2: WARN: The package openjdk/19.0.2:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 doesn't belong to the installed recipe revision, removing folder
openjdk/19.0.2: Building package from source as defined by build_policy='missing'
Installing package: openjdk/19.0.2
Requirements
    openjdk/19.0.2 from 'conancenter' - Downloaded
Packages
    openjdk/19.0.2:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Build
Build requirements
    cmake/3.30.1 from 'conancenter' - Cache
Build requirements packages
    cmake/3.30.1:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Cache

Installing (downloading, building) binaries...
cmake/3.30.1: Already installed!
cmake/3.30.1: Appending PATH environment variable: C:\Users\uilia\.conan\data\cmake\3.30.1\_\_\package\ca33edce272a279b24f87dc0d4cf5bbdcffbc187\bin
openjdk/19.0.2: Applying build-requirement: cmake/3.30.1
openjdk/19.0.2: Configuring sources in C:\Users\uilia\.conan\data\openjdk\19.0.2\_\_\source
openjdk/19.0.2: Copying sources to build folder
openjdk/19.0.2: Building your package in C:\Users\uilia\.conan\data\openjdk\19.0.2\_\_\build\ca33edce272a279b24f87dc0d4cf5bbdcffbc187
openjdk/19.0.2: Generator txt created conanbuildinfo.txt
openjdk/19.0.2: Aggregating env generators
openjdk/19.0.2: Calling build()
Downloading openjdk-19.0.2_windows-x64_bin.zip completed [189898.08k]                    openjdk/19.0.2: /19.0.2: openjdk/19.0.2:
openjdk/19.0.2:
openjdk/19.0.2: Unzipping 324.8MB, this can take a while
Unzipping 100 %                                                       openjdk/19.0.2:
openjdk/19.0.2: Package 'ca33edce272a279b24f87dc0d4cf5bbdcffbc187' built
openjdk/19.0.2: Build folder C:\Users\uilia\.conan\data\openjdk\19.0.2\_\_\build\ca33edce272a279b24f87dc0d4cf5bbdcffbc187
openjdk/19.0.2: Generated conaninfo.txt
openjdk/19.0.2: Generated conanbuildinfo.txt
openjdk/19.0.2: Generating the package
openjdk/19.0.2: Package folder C:\Users\uilia\.conan\data\openjdk\19.0.2\_\_\package\ca33edce272a279b24f87dc0d4cf5bbdcffbc187
openjdk/19.0.2: Calling package()
openjdk/19.0.2: Copied 84 '.dll' files
openjdk/19.0.2: Copied 36 '.exe' files
openjdk/19.0.2: Copied 2 '.jsa' files: classes.jsa, classes_nocoops.jsa
openjdk/19.0.2: Copied 11 '.h' files
openjdk/19.0.2: Copied 4 files: classlist, modules, tzmappings, cacerts
openjdk/19.0.2: Copied 1 '.sym' file: ct.sym
openjdk/19.0.2: Copied 1 '.bfc' file: fontconfig.bfc
openjdk/19.0.2: Copied 1 '.src' file: fontconfig.properties.src
openjdk/19.0.2: Copied 2 '.lib' files: jawt.lib, jvm.lib
openjdk/19.0.2: Copied 1 '.jar' file: jrt-fs.jar
openjdk/19.0.2: Copied 1 '.cfg' file: jvm.cfg
openjdk/19.0.2: Copied 1 '.ja' file: psfont.properties.ja
openjdk/19.0.2: Copied 1 '.properties' file: psfontj2d.properties
openjdk/19.0.2: Copied 1 '.zip' file: src.zip
openjdk/19.0.2: Copied 2 '.dat' files: tzdb.dat, public_suffix_list.dat
openjdk/19.0.2: Copied 2 '.jfc' files: default.jfc, profile.jfc
openjdk/19.0.2: Copied 1 '.certs' file: blocked.certs
openjdk/19.0.2: Copied 1 '.policy' file: default.policy
openjdk/19.0.2: Copied 71 '.jmod' files
openjdk/19.0.2: Copied 213 files
openjdk/19.0.2: Copied 32 '.md' files
openjdk/19.0.2: Copied 4 '.properties' files: logging.properties, net.properties, sound.properties, management.properties
openjdk/19.0.2: Copied 1 '.access' file: jmxremote.access
openjdk/19.0.2: Copied 1 '.template' file: jmxremote.password.template
openjdk/19.0.2: Copied 6 '.policy' files
openjdk/19.0.2: Copied 1 '.security' file: java.security
openjdk/19.0.2: Copied 1 '.txt' file: README.txt
openjdk/19.0.2 package(): Packaged 84 '.dll' files
openjdk/19.0.2 package(): Packaged 36 '.exe' files
openjdk/19.0.2 package(): Packaged 2 '.jsa' files: classes.jsa, classes_nocoops.jsa
openjdk/19.0.2 package(): Packaged 5 '.properties' files
openjdk/19.0.2 package(): Packaged 1 '.access' file: jmxremote.access
openjdk/19.0.2 package(): Packaged 1 '.template' file: jmxremote.password.template
openjdk/19.0.2 package(): Packaged 7 '.policy' files
openjdk/19.0.2 package(): Packaged 1 '.security' file: java.security
openjdk/19.0.2 package(): Packaged 1 '.txt' file: README.txt
openjdk/19.0.2 package(): Packaged 11 '.h' files
openjdk/19.0.2 package(): Packaged 217 files
openjdk/19.0.2 package(): Packaged 1 '.sym' file: ct.sym
openjdk/19.0.2 package(): Packaged 1 '.bfc' file: fontconfig.bfc
openjdk/19.0.2 package(): Packaged 1 '.src' file: fontconfig.properties.src
openjdk/19.0.2 package(): Packaged 2 '.lib' files: jawt.lib, jvm.lib
openjdk/19.0.2 package(): Packaged 1 '.jar' file: jrt-fs.jar
openjdk/19.0.2 package(): Packaged 1 '.cfg' file: jvm.cfg
openjdk/19.0.2 package(): Packaged 1 '.ja' file: psfont.properties.ja
openjdk/19.0.2 package(): Packaged 1 '.zip' file: src.zip
openjdk/19.0.2 package(): Packaged 2 '.dat' files: tzdb.dat, public_suffix_list.dat
openjdk/19.0.2 package(): Packaged 2 '.jfc' files: default.jfc, profile.jfc
openjdk/19.0.2 package(): Packaged 71 '.jmod' files
openjdk/19.0.2 package(): Packaged 1 '.certs' file: blocked.certs
openjdk/19.0.2 package(): Packaged 32 '.md' files
openjdk/19.0.2: Package 'ca33edce272a279b24f87dc0d4cf5bbdcffbc187' created
openjdk/19.0.2: Created package revision cb55dff571dabd8f59f736fa2a442ab7
openjdk/19.0.2: Creating JAVA_HOME environment variable with : C:\Users\uilia\.conan\data\openjdk\19.0.2\_\_\package\ca33edce272a279b24f87dc0d4cf5bbdcffbc187
Aggregating env generators

WARN: **************************************************
WARN: *** Conan 1 is legacy and on a deprecation path **
WARN: *********** Please upgrade to Conan 2 ************
WARN: **************************************************

With both CONAN_REVISIONS_ENABLED active or not, the result is the same.

In your case, when you use CONAN_REVISIONS_ENABLED=0 you are actually only downloading the package from Conan Center, with all OpenJDK artifacts packaged already. However, with CONAN_REVISIONS_ENABLED=1. you are actually trying to download the openjdk-19.0.2_windows-x64_bin.zip from download.java.net, which fails for you. My build log above is using revisions, you can see the recipe revision 06e56f0ff1a749c568802e8d6868835c and package ID ca33edce272a279b24f87dc0d4cf5bbdcffbc187, exactly same as you, and is downloading the .zip file from download.java.net as well.

I would recommend checking:

You also can do a prof of your case by using the follow Python script:

import requests
r = requests.get("https://download.java.net/java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_windows-x64_bin.zip")
open('openjdk-19.0.2_windows-x64_bin.zip', 'wb').write(r.content)

This will download the same expected zip file as done by Conan, and will print it's content. Please, use the exactly same Python client as used for your Conan client.