gamecenter-auth 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gamecenter/auth.rb +47 -42
- data/lib/gamecenter/auth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c933d0bc41b62115dc54b73a3c34817cf5610651a2af87e9278d9f86e8ac693
|
4
|
+
data.tar.gz: 15627d885dc1cf4f65f4d862a74452fc0b0d001f48522cad6e030517aab5d08d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67e97ac446da240d0a747bd76043ca38d11086216ddbc14b4101eac8bf8ba667b3fdb1a6a19bab59a055c33768f3950dc008c8ded6af8c9451140ca8943656f6
|
7
|
+
data.tar.gz: fd2aadfe53d679a63dfc2e91d6b6660017b556e26507b64ce79723329f5827e2326f3798baa3d02584ab258f0cfa0e0001e7ce5fdb6ad7cf504a51fd621c3557
|
data/lib/gamecenter/auth.rb
CHANGED
@@ -19,49 +19,54 @@ module Gamecenter
|
|
19
19
|
@@request_public_key_read_timeout = 5 # seconds
|
20
20
|
@@request_public_key_ssl_timeout = 5 # seconds
|
21
21
|
|
22
|
+
# this is a CA Code Signing certificate that can be used to verify the
|
23
|
+
# public key certificates (which are downloaded from public_key_url)
|
24
|
+
# converted to base64:
|
25
|
+
# openssl x509 -inform der -in gc-prod-6.cer -out outfile.cer
|
26
|
+
#
|
27
|
+
# current certificate name:
|
28
|
+
# DigiCert Trusted G4 Code Signing RSA4096 SHA384 2021 CA1 (RSA default)
|
29
|
+
# source: https://developer.apple.com/forums/thread/686122
|
30
|
+
# source: https://knowledge.digicert.com/alerts/code-signing-new-minimum-rsa-keysize.html
|
22
31
|
@@ca_certificate = OpenSSL::X509::Certificate.new <<~EOCACERT
|
23
|
-
|
24
|
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+
-----END CERTIFICATE-----
|
65
70
|
EOCACERT
|
66
71
|
|
67
72
|
# Verifies the identity of the given player. Takes all return values from GameKit's generateIdentityVerificationSignatureWithCompletionHandler method.
|