Comments (7)
I agree. This is bad. I'll try to address this in a future release.
from jose.
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
- built and installed Python-3.6.7
- built and installed cmake-3.13.1
- built and installed meson-0.49.0 for the python3
- built and installed jose. Besides I copied to the /usr/lib64/ all libraries from the build directory
- 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.
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.
@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.
Thanks a lot, Daniel. I got it.
from jose.
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.
Hello @oleshii. Thanks for the change. Could you please open a PR from it?
from jose.
Related Issues (20)
- CI Github Actions: include compilation in FreeBSD HOT 1
- [minor] Replace usage of which
- [minor] Possibly probe for jq in meson.build HOT 1
- Consider increasing test timeouts
- [Question] How to correctly verify JWS for OIDC?
- [Question] How to use the library with a (software) HSM?
- 11: test suite is failing HOT 11
- Entering password (-p) in scripts HOT 4
- Dual license with MIT?
- Release v12
- Does not link against OpenSSL 3 HOT 3
- Fedora rawhide container failing due to issues on dnf.conf format HOT 2
- Github actions should be migrated so that version v3 is used
- Decrypt Error with Open SSL 3 HOT 4
- OSX build on Travis-ci is failing HOT 5
- `jose enc` generates out-of-spec JWE HOT 2
- The default Thumbprints digest is SHA-1, even though RFC 7638 recommends at least SHA256 HOT 8
- Please consider atomic --output to a file HOT 1
- Migrate CI from travis HOT 6
- Provide infra for JOSE to dump logs at different levels
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jose.