Do not use deprecated API.
This commit is contained in:
parent
7187e6f909
commit
408bc4e6be
|
@ -26,7 +26,7 @@ module Vagrant
|
|||
private_key = rsa_key.to_pem
|
||||
|
||||
if password
|
||||
cipher = OpenSSL::Cipher::Cipher.new('des3')
|
||||
cipher = OpenSSL::Cipher.new('des3')
|
||||
private_key = rsa_key.to_pem(cipher, password)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue