mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
[ruby/openssl] Add to_text for PKCS7 and Timestamp::Response
71cd1e3f5c
This commit is contained in:
parent
aabe718e64
commit
841b45a442
4 changed files with 88 additions and 0 deletions
|
@ -323,6 +323,8 @@ _end_of_pem_
|
|||
resp = fac.create_timestamp(ee_key, ts_cert_ee, req)
|
||||
assert_equal(OpenSSL::Timestamp::Response::GRANTED, resp.status)
|
||||
assert_equal("1.2.3.4.6", resp.token_info.policy_id)
|
||||
|
||||
assert_match(/1\.2\.3\.4\.6/, resp.to_text)
|
||||
end
|
||||
|
||||
def test_response_bad_purpose
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue