Code Monkey home page Code Monkey logo

Comments (7)

npmccallum avatar npmccallum commented on July 16, 2024

I agree. This is bad. I'll try to address this in a future release.

from jose.

oleshii avatar oleshii commented on July 16, 2024

Hello Henry !
How are you ? Just now I tried to reproduce your problem. I did not reproduce it. What I did exactly:
OS Enviromnment: FC 29 x86_64

  1. built and installed Python-3.6.7
  2. built and installed cmake-3.13.1
  3. built and installed meson-0.49.0 for the python3
  4. built and installed jose. Besides I copied to the /usr/lib64/ all libraries from the build directory
  5. executed an affective command: jose jwk gen -i '{"alg": "RS256"}' -o mykey.jwk
    The mykey.jwk file was produced without of any problem.
    According of the problem description, you have had run a jose from the current directory.
    ./jose jwk gen -i '{"alg": "RS256"}' -o mykey.jwk
    May be, you built and installed the jose manually and did not copy all necessary libraries to the /usr/lib64.
    What kind of Os does you use ? How did you install the jose ?

With Best regards
Oleg Nikitenko

from jose.

oleshii avatar oleshii commented on July 16, 2024

A couple of more experiments: pure system FC29 x86_64, only jose package was install. jose binary placed in /usr/bin directory. Inside of the /usr/bin/ directory:
./jose jwk gen -i '{"alg": "RS256"}' -o mykey.jwk
produces no file and help output
sudo jose jwk gen -i '{"alg": "RS256"}' -o mykey.jwk
works fine.
On system where was build all packages previously:
All distcleaned and uninstalled.
The jose binary is placed in the build directory
./jose jwk gen -i '{"alg": "RS256"}' -o mykey.jwk
works fine.

from jose.

dkopecek avatar dkopecek commented on July 16, 2024

@oleshii try this:

$ jose jwk gen -i '{"alg": "RS255"}' -o mykey.jwk

The error message is non descriptive. It would be nice if the tool provided a hint regarding what is wrong with the input parameters or why exactly it couldn't generate the jwk.

from jose.

oleshii avatar oleshii commented on July 16, 2024

Thanks a lot, Daniel. I got it.

from jose.

oleshii avatar oleshii commented on July 16, 2024

Hello Daniel,
Happy Merry Christmas and New Year !
I changed the jose-master/cmd/jwkgen.c file. I git results:
Input:
./jose jwk gen -i '{"keys":[{"alg":"RS2"},{"alg":"ES256"}]}' -o -
Output:
jwk_error_handler Generation failed by unknown algo RS2!

Input:
./jose jwk gen -i '{"keys":[{"yuh":"RS2"},{"alg":"ES256"}]}' -o -
Output:
jwk_error_handler Generation failed by unknown algo selector yuh!

I sent the modified gen.c file to your work e-mail.

With Best regards
Oleg Nikitenko

from jose.

sarroutbi avatar sarroutbi commented on July 16, 2024

Hello @oleshii. Thanks for the change. Could you please open a PR from it?

from jose.

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.