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
|
private_key = rsa_key.to_pem
|
||||||
|
|
||||||
if password
|
if password
|
||||||
cipher = OpenSSL::Cipher::Cipher.new('des3')
|
cipher = OpenSSL::Cipher.new('des3')
|
||||||
private_key = rsa_key.to_pem(cipher, password)
|
private_key = rsa_key.to_pem(cipher, password)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue