Skip to content

Commit

Permalink
Revert "Abort if private key could not be exported"
Browse files Browse the repository at this point in the history
This reverts commit c2d4612.
  • Loading branch information
MarkVillacampa committed Aug 12, 2016
1 parent 7e6a75e commit c2990f6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/motion-provisioning/certificate.rb
Expand Up @@ -110,10 +110,6 @@ def certificate_name(type, platform)

password = Utils.ask_password("Info", "Exporting private key from Keychain for certificate '#{installed_certificate.name}'. Choose a password (you will be asked for this password when importing this key into the Keychain in another machine):")
private_key_contents = private_key(common_name(path), sha1_fingerprint(path), password)
if private_key_contents.empty?
Utils.log("Error", "Could not export private key for certificate '#{installed_certificate.name}'.")
abort
end
File.write(private_key_path, private_key_contents)

# This certificate is installed on the local machine
Expand Down

0 comments on commit c2990f6

Please sign in to comment.