Coder Social home page Coder Social logo

Comments (5)

jeff-tillinghast avatar jeff-tillinghast commented on June 17, 2024 1

Ah-- that makes total sense! And yes, I was going to submit that whole block with the code tags as well. Thanks for the script, and I'll take a look at it this afternoon. Much appreciated.

CLOSING: Will submit errata. Error appears to be based on user local machine configuration.

from cka-study-guide.

bmuschko avatar bmuschko commented on June 17, 2024

Based on the error message you provided, it seems like you are missing the ~ character for the path to refer to .minikube in the user home directory. The path should be ~/.minikube/ca.crt. Alternatively, use the full path to the file.

from cka-study-guide.

jeff-tillinghast avatar jeff-tillinghast commented on June 17, 2024

Thanks, @bmuschko -- so that's a typo in the book, then, which I can log in the errata. But more importantly, if I put the ~ back in, then it at least finds the signature, but Docker still fails:

docker@minikube:~/cert$ openssl x509 -req -in johndoe.csr -CA ~/.minikube/ca.crt -CAkey ~/.minikube/ca.key -CAcreateserial -out johndoe.crt -days 364
Signature ok
subject=CN = johndoe, O = cka-study-guide
Can't open /home/docker/.minikube/ca.crt for reading, No such file or directory
281473422404064:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:69:fopen('/home/docker/.minikube/ca.crt','r')
281473422404064:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:76:
unable to load certificate

/home/docker is empty.

from cka-study-guide.

bmuschko avatar bmuschko commented on June 17, 2024

Ugh, you are right. There's an issue with the formatting of that command in the book. In the text above the command, you can see another incorrect formatting <code>.... Would you mind sending that to the errata?

In regard to the commands, check this script I use during my live training: https://github.com/bmuschko/cka-crash-course/blob/master/exercises/01-rbac/create-user-context.sh

Side note: It seems like you installed minikube with a different user than docker. Therefore, it's not visible to the user.

from cka-study-guide.

bmuschko avatar bmuschko commented on June 17, 2024

I added this issue to the errata: https://app.oreilly.com/cs/portal/edit/errata/200061

from cka-study-guide.

Related Issues (8)

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.