Skip to content

Instantly share code, notes, and snippets.

@tabrindle
Created June 23, 2016 13:18
Show Gist options
  • Save tabrindle/9539d3c6caf69b06200195d94ce4ab82 to your computer and use it in GitHub Desktop.
Save tabrindle/9539d3c6caf69b06200195d94ce4ab82 to your computer and use it in GitHub Desktop.
Get all ios certs from developer portal
#!/usr/bin/env ruby
require 'spaceship'
Spaceship.login('[email protected]')
Spaceship.select_team
Spaceship.certificate.all.each do |cert|
cert_type = Spaceship::Portal::Certificate::CERTIFICATE_TYPE_IDS[cert.type_display_id].to_s.split("::")[-1]
puts "Cert id: #{cert.id}, name: #{cert.name}, expires: #{cert.expires.strftime("%Y-%m-%d")}, type: #{cert_type}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment