Module: Rubrik::PKCS7Signature
- Extended by:
- PKCS7Signature, T::Sig
- Included in:
- PKCS7Signature
- Defined in:
- lib/rubrik/pkcs7_signature.rb
Constant Summary collapse
- OPEN_SSL_FLAGS =
OpenSSL::PKCS7::DETACHED | OpenSSL::PKCS7::BINARY
Instance Method Summary collapse
Instance Method Details
#call(data, private_key:, certificate:, certificate_chain: []) ⇒ Object
20 21 22 |
# File 'lib/rubrik/pkcs7_signature.rb', line 20 def call(data, private_key:, certificate:, certificate_chain: []) OpenSSL::PKCS7.sign(certificate, private_key, data, certificate_chain, OPEN_SSL_FLAGS).to_der end |