certstepper 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/certstepper.rb +13 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7faacbe1cfba5a2d252d438ae12598777d45d4a1
|
4
|
+
data.tar.gz: 4601dbf4b3495ca03419c2069b7dea9b8d6e3aa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bc163ff1c473f142cf53c17e55f27c833063aed4dc951e56483237ca0a65355dc6b94e39d0f91293f607c1fe76e00566e0e8e7a0b64723ee7c319af5557de03
|
7
|
+
data.tar.gz: 749457b2cb2bfeb4f7e904cea685c1a37ec6293bc4e2c94b59d313adc34369772adee6d065c8046d687df0c515a062c0df2b5a0663bc6f8e56b3bc358aec419b
|
data/lib/certstepper.rb
CHANGED
@@ -32,19 +32,21 @@ module CertStepper
|
|
32
32
|
self.getUserInput
|
33
33
|
self.copyToClipboard cert.password
|
34
34
|
puts "password coppied : #{cert.password}\n"
|
35
|
-
puts "3.
|
35
|
+
puts "3.import and export cert"
|
36
|
+
self.dealCert cert
|
37
|
+
puts "4. copy profile name. <press enter>"
|
36
38
|
self.getUserInput
|
37
39
|
self.copyToClipboard cert.profile_name
|
38
40
|
puts "name coppied : #{cert.profile_name}\n"
|
39
|
-
puts "\
|
41
|
+
puts "\n5. copy profile id. <press enter>"
|
40
42
|
self.getUserInput
|
41
43
|
self.copyToClipboard cert.profile_id
|
42
44
|
puts "id coppied : #{cert.profile_id}"
|
43
|
-
puts "\
|
45
|
+
puts "\n6. copy profile name. <press enter>"
|
44
46
|
self.getUserInput
|
45
47
|
self.copyToClipboard cert.profile_name
|
46
48
|
puts "name coppied : #{cert.profile_name}\n"
|
47
|
-
puts "\
|
49
|
+
puts "\n7. move profile to destination from download. <press enter>"
|
48
50
|
self.getUserInput
|
49
51
|
mobileprovision_name = "#{cert.profile_name}.mobileprovision"
|
50
52
|
source_file = "#{File.expand_path('~')}/Downloads/#{mobileprovision_name}"
|
@@ -110,4 +112,11 @@ module CertStepper
|
|
110
112
|
end
|
111
113
|
end
|
112
114
|
|
115
|
+
def self.dealCert(cert)
|
116
|
+
system "security create-keychain -P 123456"
|
117
|
+
system "security add-trusted-cert -r unspecified -k 123456 #{File.expand_path('~')}/Downloads/ios_development.cer"
|
118
|
+
system "security export -k 123456 -t certs -f pkcs12 -o #{@@root_path}/#{cert.profile_name}/cert.p12"
|
119
|
+
system "security delete-keychain 123456"
|
120
|
+
end
|
121
|
+
|
113
122
|
end
|