Git Product home page Git Product logo

Comments (4)

lbroudoux avatar lbroudoux commented on September 13, 2024

Thanks a lot for opening this issue. Could it be related to #39 ?
I will have a look at it as soon as possiblee.

from microcks-ansible-operator.

whitfiea avatar whitfiea commented on September 13, 2024

@lbroudoux yes that looks to be the issue, this is the error you see on the first reconcile when those files are not present:

TASK [The Microks GRPC certs are generated] ********************************
�[0;31mfatal: [localhost]: FAILED! => {"changed": true, "cmd": ["openssl", "req", "-x509", "-nodes", "-days", "3650", "-newkey", "rsa:2048", "-keyout", "microcks-grpc.key", "-out", "microcks-grpc.crt", "-subj", "/CN=mas-core-microcksinstall-microcks.masdeps1-6f1620198115433da1cac8216c06779b-0000.eu-gb.containers.appdomain.cloud", "-extensions", "san", "-config", "microcks-grpc.cnf"], "delta": "0:00:00.085309", "end": "2021-07-28 11:06:48.479105", "msg": "non-zero return code", "rc": 1, "start": "2021-07-28 11:06:48.393796", "stderr": "Generating a RSA private key\n..................................................+++++\n..+++++\nwriting new private key to 'microcks-grpc.key'\n-----\nproblems making Certificate Request\n140114897585984:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:crypto/asn1/a_mbstr.c:107:maxsize=64", "stderr_lines": ["Generating a RSA private key", "..................................................+++++", "..+++++", "writing new private key to 'microcks-grpc.k...
�[0;31m�[

The following reconcile runs then fail with the

as it doesn't try to rerun the openssl command as it sees the key is already present but there is no generated crt.

It looks like the url is in the subjectAltNames so I guess it just needs the CN to be reduced

from microcks-ansible-operator.

lbroudoux avatar lbroudoux commented on September 13, 2024

Great! Thanks for the analysis. Made a first rapid test and it seems to work just adding a | truncate(64).
I did not have such long CN when testing sorry 😉

from microcks-ansible-operator.

lbroudoux avatar lbroudoux commented on September 13, 2024

Marking this one as duplicate and will pursue on original #39.

from microcks-ansible-operator.

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.