Skip to content
TheChatArchiveThe Chat Archive
Metallama-3.3-70b-instruct· MetaHugging Face LMArena Human Preference 140K

I have a quarkus application that I'm compiling to native. The application worked fine…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-sonnet-4-20250514-thinking-32k’s answer.
  1. User

    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

  2. Meta Assistant

    Step-by-step analysis of the problem:

    1. HTTPS Configuration: When you enabled HTTPS, you likely configured the Quarkus application to use a certificate and private key in PEM format. Ensure that the quarkus.http.ssl.certificate.file and quarkus.http.ssl.certificate.key-file properties are correctly set in your application.properties file.
    2. Certificate and Private Key Files: Verify that the certificate and private key files are correctly formatted and not corrupted. You can use tools like OpenSSL to check the files: openssl x509 -in certificate.pem -text and openssl rsa -in private_key.pem -text.
    3. File Permissions: Ensure that the Quarkus application has the necessary permissions to read the certificate and private key files. If the files are not readable, the application may not start or may not be able to establish HTTPS connections.
    4. Port Configuration: When switching from HTTP to HTTPS, you may need to update the port configuration. By default, Quarkus uses port 8080 for HTTP and port 8443 for HTTPS. Ensure that you have updated the quarkus.http.port property to use the correct port for HTTPS.
    5. Virtual Machine Configuration: Since the application is running in a virtual machine, ensure that the VM is configured to allow incoming traffic on the HTTPS port (typically 8443). You may need to update the VM's firewall rules or port forwarding settings.
    6. SSL/TLS Protocol Version: Quarkus may be using a different SSL/TLS protocol version than what your client (e.g., web browser) supports. You can try setting the quarkus.http.ssl.protocol property to a specific version, such as TLSv1.2.
    7. Cipher Suites: The Quarkus application may not be using a cipher suite that is compatible with your client. You can try setting the quarkus.http.ssl.cipher-suites property to a specific suite, such as TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256.

    Fixed solution:

    Since the issue is likely related to the configuration, there is no specific code to fix. However, you can try updating your application.properties file with the following settings:

    quarkus.http.ssl.certificate.file=certificate.pem
    quarkus.http.ssl.certificate.key-file=private_key.pem
    quarkus.http.port=8443
    quarkus.http.ssl.protocol=TLSv1.2
    quarkus.http.ssl.cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
    

    Explanation of changes:

    • Updated certificate and private key file settings: Ensured that the correct files are being used for the HTTPS configuration.
    • Updated port configuration: Changed the port to the default HTTPS port (8443).
    • Updated SSL/TLS protocol version: Set the protocol version to TLSv1.2 for compatibility with most clients.
    • Updated cipher suites: Set the cipher suite to a specific suite (TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) for compatibility with most clients.

    Tests and example uses:

    To test the application, you can use a tool like curl to connect to the HTTPS endpoint:

    curl -k https://localhost:8443
    

    This will establish a connection to the Quarkus application using HTTPS. If the connection is successful, you should see the application's response. If the connection fails, you can check the Quarkus application logs for any error messages.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.