diff --git a/lib/travis/client/repository.rb b/lib/travis/client/repository.rb index 99441f0c..34527c6a 100644 --- a/lib/travis/client/repository.rb +++ b/lib/travis/client/repository.rb @@ -13,7 +13,7 @@ def initialize(data, fingerprint) end def encrypt(value) - encrypted = to_rsa.public_encrypt(value) + encrypted = to_rsa.public_encrypt(value, OpenSSL::PKey::RSA::PKCS1_OAEP_PADDING) Base64.encode64(encrypted).gsub(/\s+/, "") end