I have a quarkus application that I'm compiling to native. The application worked fine when I ran it using http. But when I enabled https I can no longer reach the site. It's running in a virtual machine, and the ssl encryption uses pem files. What can be the issue? The application also does not state any errors and seems to start
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
And ensure you have SSL support explicitly enabled in your application.properties:
properties
quarkus.ssl.native=true
Certificate and Binding Configuration
Check your HTTPS configuration in application.properties:
properties
# HTTPS configuration
quarkus.http.ssl-port=8443
quarkus.http.ssl.certificate.file=path/to/your/cert.pem
quarkus.http.ssl.certificate.key-file=path/to/your/key.pem
# Make sure it binds to all interfaces if running in VM
quarkus.http.host=0.0.0.0
Native Build Configuration
Add this to your application.properties to ensure proper SSL support in native mode:
Check if the port is accessible: Test if port 8443 (or your SSL port) is reachable from outside the VM
Verify certificate paths: Ensure the PEM files are accessible within the container/VM at the specified paths
Test with curl: Try curl -k https://your-vm-ip:8443 to see if you get any response
Check application startup logs: Look for any SSL-related initialization messages
VM-Specific Considerations
Since you're running in a VM, also verify:
Port forwarding is configured correctly
Firewall rules allow the HTTPS port
The application is binding to 0.0.0.0 not just localhost
Try rebuilding your native executable with the SSL configurations above. The lack of error messages often indicates the SSL libraries weren't properly included in the native compilation.