Coder Social home page Coder Social logo

certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name after go upgrade. about app-autoscaler-release HOT 6 CLOSED

cloudfoundry avatar cloudfoundry commented on July 1, 2024
certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name after go upgrade.

from app-autoscaler-release.

Comments (6)

garethjevans avatar garethjevans commented on July 1, 2024

Another suggestion could be to generate the certificates for postgres with the alternative_names correctly configured.

from app-autoscaler-release.

mmavrudiev avatar mmavrudiev commented on July 1, 2024

Not working, if I put only alternative_names to the CAs, getting:

                 L Error: Config Server failed to generate value for '/overbosh/app-autoscaler/scalingengine_ca' with type 'certificate'. HTTP Code '400', Error: 'At least one subject value, such as common name or organization, must be defined to generate the certificate. Please update and retry your request.'

If I put organization + alternative_names I am getting:

2021/07/23 07:59:37 failed-to-connection-to-database, dburl:postgres://postgres:REDACTED@autoscalerpostgres.service.cf.internal:5432/autoscaler?sslmode=verify-full&sslrootcert=/var/vcap/jobs/scalingengine/config/certs/scalingengine_db/ca.crt, err:x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0

If I put common_name + alternative_names getting the above error.

from app-autoscaler-release.

garethjevans avatar garethjevans commented on July 1, 2024

@mmavrudiev did you have any success setting the GODEBUG variable? e.g. #288?

from app-autoscaler-release.

mmavrudiev avatar mmavrudiev commented on July 1, 2024

@garethjevans have not tried in utils.sh but was trying to set the env var on every pre-start script, let me try that one as well.

from app-autoscaler-release.

mmavrudiev avatar mmavrudiev commented on July 1, 2024

@garethjevans I have tried the same mentioned in #288 but getting the same cert error - err:x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0, then executing ./scripts/update, then have created the bosh release, then uploading the release and using it to create the bosh deployment.

from app-autoscaler-release.

garethjevans avatar garethjevans commented on July 1, 2024

Fixed by #325

from app-autoscaler-release.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.