lib/oci/base_signer.rb
# enum to define the signing strategy
enum to define the signing strategy
enum to define the signing strategy
def private_key
      @private_key ||= OpenSSL::PKey::RSA.new(
        @private_key_content,
        @pass_phrase || SecureRandom.uuid
      )
    end
def private_key @private_key ||= OpenSSL :: PKey :: RSA . new ( @private_key_content , @pass_phrase || SecureRandom . uuid ) end
enum to define the signing strategy
enum to define the signing strategy
# If a pass_phase was not provided and the key is in fact encrypted, then passing in # nil for the passphrase here will show a user prompt and block until there is a response. # Passing in an empty string will work for some versions of Ruby's openssl wrapper, but # other versions will enforce the 4 character password minimum at this point. Passing in # a dummy password that's greater than 4 characters avoids both problems, and will # always succeed if the file is not encrypted.