fastlane-plugin-certificate_expirydate 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80ffa8497b2650082b0106e44564d49f37f3d056
|
4
|
+
data.tar.gz: 154b9b14d1aafa8527dfbd6ee9c5c5f4245756cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99c34b57e69e27bd95e179ff7e3abe95cba14fa68ff5f5fa60d12790772d7b7a661510a064b4a16c7ec3046b44cb0155e3a5d4934ce503294e7ce4765eb4f6a5
|
7
|
+
data.tar.gz: e508909b68085b3d623b0cdee55f818f91644c2af01940c404fe4258aaa1f15269654a0c54be05a9ec1d49a9376aa1eb0f91436dec03577e3ac9b25814421fbc
|
@@ -6,8 +6,8 @@ module Fastlane
|
|
6
6
|
certificate_pem_file = File.join("/tmp", "#{certificate_basename}.pem")
|
7
7
|
File.delete(certificate_pem_file) if File.exist?(certificate_pem_file)
|
8
8
|
|
9
|
-
|
10
|
-
expirydate_string =
|
9
|
+
Actions.sh("openssl pkcs12 -in #{params[:certificate_filepath].shellescape} -out #{certificate_pem_file} -nodes -password pass:#{params[:certificate_password].shellescape}", log: false)
|
10
|
+
expirydate_string = Actions.sh("cat #{certificate_pem_file} | openssl x509 -noout -enddate", log: false)[/notAfter=(.*)/, 1]
|
11
11
|
|
12
12
|
DateTime.parse(expirydate_string)
|
13
13
|
end
|