We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, only Integer time is supported:
Integer
rnp = Rnp.new k = rnp.generate_key( { primary: { type: 'RSA', length: 4096, userid: 'hello test', usage: [:sign], expiration: (Time.now + 60000).to_i, }, })
If a Time/Date/DateTime object is supplied, it would fail:
Time
Date
DateTime
rnp = Rnp.new k = rnp.generate_key( { primary: { type: 'RSA', length: 4096, userid: 'hello test', usage: [:sign], expiration: Time.now + 60000, }, }) # => Rnp::Error: rnp_generate_key_json failed - (rc: 0x10000002): Bad parameters # from /opt/ribose/bundle/gems/rnp-1.0.0/lib/rnp/error.rb:29:in # `raise_error'
ruby-rnp should be able to accept a Time/Date/DateTime and convert it to an Integer when necessary.
ruby-rnp
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, only
Integer
time is supported:If a
Time
/Date
/DateTime
object is supplied, it would fail:ruby-rnp
should be able to accept aTime
/Date
/DateTime
and convert itto an
Integer
when necessary.The text was updated successfully, but these errors were encountered: