mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 19:18:03 +01:00
Treat APNs team/key IDs as secrets so they can change atomically with the key itself
This commit is contained in:
committed by
Jon Chambers
parent
207ae6129b
commit
f2a3b8dba4
@@ -64,7 +64,7 @@ public class APNSender implements Managed, PushNotificationSender {
|
||||
this.bundleId = configuration.bundleId();
|
||||
this.apnsClient = new ApnsClientBuilder().setSigningKey(
|
||||
ApnsSigningKey.loadFromInputStream(new ByteArrayInputStream(configuration.signingKey().value().getBytes()),
|
||||
configuration.teamId(), configuration.keyId()))
|
||||
configuration.teamId().value(), configuration.keyId().value()))
|
||||
.setTrustedServerCertificateChain(getClass().getResourceAsStream(APNS_CA_FILENAME))
|
||||
.setApnsServer(configuration.sandbox() ? ApnsClientBuilder.DEVELOPMENT_APNS_HOST : ApnsClientBuilder.PRODUCTION_APNS_HOST)
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user