[ruby/openssl] Add to_text for PKCS7 and Timestamp::Response

71cd1e3f5c
This commit is contained in:
Samuel Giddins 2024-05-05 00:22:30 -07:00 committed by git
parent aabe718e64
commit 841b45a442
4 changed files with 88 additions and 0 deletions

View file

@ -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