Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
    • Tags

    Run java play framework application on https route in openshift

    Posted on

    We have created a rest api using java play framework. And we are using set of self signed certificates.
    Currently this application consumes a Java key stores (.jks files) for server identity. I am running rest api on https in my app.

    From Jenkins, i build my docker file and then tag and deploy my image to openshift environment.

    When i check logs on the pods, I can see my application is running on https only and from pod terminal I used curl to check if i can hit my rest api with client key/pem and ca certificate.

    Now i want to expose https route for this pod

    I see with the below cmd i can deploy my application on https route.
    $ oc create route edge --service=frontend \
    --cert=${MASTER_CONFIG_DIR}/ca.crt \
    --key=${MASTER_CONFIG_DIR}/ca.key \
    --ca-cert=${MASTER_CONFIG_DIR}/ca.crt \
    --hostname=www.example.com

    I have given server idenity key and pem and ca cert.

    But i get below error
    Requested host newhttpsstub.dev-test.awsdomain.local was rejected by the router. Reason: - spec.tls.certificate: Invalid value: "redacted certificate data": error verifying certificate: x509: certificate signed by unknown
    authority.

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat