Commit 55cdfeaa authored by Tim Smith's avatar Tim Smith
Browse files

Remove the public key type logic for now

Signed-off-by: default avatarTim Smith <>
parent 01e9d94f
......@@ -52,7 +52,7 @@ module OpenSSLCookbook
def gen_rsa_pub_key(priv_key_path, key_type, priv_key_password = nil)
def gen_rsa_pub_key(priv_key_path, priv_key_password = nil)
key =, priv_key_password
include OpenSSLCookbook::Helpers
property :path, String, name_property: true
property :type, equal_to: %w(pkcs openssh), default: 'pkcs'
property :private_key_path, String, required: true
property :private_key_pass, String
property :owner, String, default: 'root'
......@@ -12,7 +11,7 @@ action :create do
converge_by("Create an RSA public key #{new_resource.path} from #{new_resource.private_key_path}") do
raise "#{new_resource.private_key_path} not a valid private RSA key or password is invalid" unless priv_key_file_valid?(new_resource.private_key_path, new_resource.private_key_pass)
rsa_key_content = gen_rsa_pub_key(new_resource.private_key_path, new_resource.type, new_resource.private_key_pass)
rsa_key_content = gen_rsa_pub_key(new_resource.private_key_path, new_resource.private_key_pass)
file new_resource.path do
action :create
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment