Using the command sdk install java 22.3.r11-nik to install Java SDK, the failure prompt is shown at the end:
Download has failed, aborting!
Can not install java 22.3.r11-nik at this time...
Validate java 22.3.r11-nik for darwinx64: valid
Validation URL: https://api.sdkman.io/2/candidates/validate/java/22.3.r11-nik/darwinx64
Get pre-installation hook: https://api.sdkman.io/2/hooks/pre/java/22.3.r11-nik/darwinx64
Copy remote pre-installation hook: /Users/richard/.sdkman/tmp/hook_pre_java_22.3.r11-nik.sh
No macOS 64bit pre-install hook found for Java 22.3.r11-nik.
Completed pre-installation hook...
Downloading: java 22.3.r11-nik
In progress...
#################################################################################################################################################################################################################### 100.0%* Trying 45.55.42.78:443...
* Connected to api.sdkman.io (45.55.42.78) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
* CApath: none
* (304) (OUT), TLS handshake, Client hello (1):
} [318 bytes data]
* (304) (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* (304) (IN), TLS handshake, Unknown (8):
{ [25 bytes data]
* (304) (IN), TLS handshake, Certificate (11):
{ [4578 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: CN=*.sdkman.io
* start date: Apr 10 00:00:00 2022 GMT
* expire date: Apr 28 23:59:59 2023 GMT
* subjectAltName: host "api.sdkman.io" matched cert's "*.sdkman.io"
* issuer: C=GB; ST=Greater Manchester; L=Salford; O=Sectigo Limited; CN=Sectigo RSA Domain Validation Secure Server CA
* SSL certificate verify ok.
> GET /2/broker/download/java/22.3.r11-nik/darwinx64 HTTP/1.1
> Host: api.sdkman.io
> Range: bytes=282468529-
> User-Agent: curl/7.79.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 302 Found
< Server: nginx/1.19.10
< Date: Fri, 07 Apr 2023 01:58:38 GMT
< Content-Length: 0
< Connection: keep-alive
< X-Sdkman-ArchiveType: zip
< location: https://download.bell-sw.com/vm/22.3.0/bellsoft-liberica-vm-openjdk11.0.17+7-22.3.0+2-macos-amd64.zip
<
* Connection #0 to host api.sdkman.io left intact
* Issue another request to this URL: 'https://download.bell-sw.com/vm/22.3.0/bellsoft-liberica-vm-openjdk11.0.17+7-22.3.0+2-macos-amd64.zip'
* Trying 2606:4700::6812:b3:443...
* Trying 104.18.0.179:443...
* Connected to download.bell-sw.com (2606:4700::6812:b3) port 443 (#1)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
* CApath: none
* (304) (OUT), TLS handshake, Client hello (1):
} [325 bytes data]
* (304) (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* (304) (IN), TLS handshake, Unknown (8):
{ [19 bytes data]
* (304) (IN), TLS handshake, Certificate (11):
{ [4675 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=*.bell-sw.com
* start date: Nov 3 00:00:00 2022 GMT
* expire date: Dec 4 23:59:59 2023 GMT
* subjectAltName: host "download.bell-sw.com" matched cert's "*.bell-sw.com"
* issuer: C=GB; ST=Greater Manchester; L=Salford; O=Sectigo Limited; CN=Sectigo RSA Domain Validation Secure Server CA
* SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fe772812000)
> GET /vm/22.3.0/bellsoft-liberica-vm-openjdk11.0.17+7-22.3.0+2-macos-amd64.zip HTTP/2
> Host: download.bell-sw.com
> range: bytes=282468529-
> user-agent: curl/7.79.1
> accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 416
< date: Fri, 07 Apr 2023 01:58:39 GMT
< content-type: text/html
< x-content-type-options: nosniff
< content-security-policy: sandbox allow-forms allow-modals allow-popups allow-presentation allow-scripts allow-top-navigation
< x-xss-protection: 1; mode=block
< content-disposition: inline
< cache-control: public, max-age=2592000
< expires: Sun, 07 May 2023 01:58:39 GMT
< content-range: bytes */282468529
< cf-cache-status: HIT
< server: cloudflare
< cf-ray: 7b3eaab1ed569872-SJC
<
{ [596 bytes data]
#################################################################################################################################################################################################################### 100.0%* Connection sdkman/sdkman-cli#1 to host download.bell-sw.com left intact
Downloaded binary to: /Users/richard/.sdkman/tmp/java-22.3.r11-nik.bin (HTTP headers written to: /Users/richard/.sdkman/var/metadata/java-22.3.r11-nik.headers)
Get post-installation hook: https://api.sdkman.io/2/hooks/post/java/22.3.r11-nik/darwinx64
Copy remote post-installation hook: /Users/richard/.sdkman/tmp/hook_post_java_22.3.r11-nik.sh
A macOS 64bit post-install hook was found for Java 22.3.r11-nik-openjdk.
Download has failed, aborting!
Can not install java 22.3.r11-nik at this time...