-
-
Notifications
You must be signed in to change notification settings - Fork 149
Description
Environment
- Elixir & Erlang/OTP versions (
elixir --version
):
Erlang/OTP 26 [erts-14.2.5] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [jit:ns]
Elixir 1.16.3 (compiled with Erlang/OTP 26)
- Operating system: OS9
- Pigeon version: 2.0.0-rc2
Current behavior
Our Apple SSL certificate expired yesterday in our environment sending pushes through Pigeon. I have the certificate defined in the config file using file.read!. Now that I've got a new pem file, is there a way to install that on the operating server running the app, and update the environment variables to read the new pem and use it?
I tried creating a new value for the Application.put_env(:myapp, Myapp.APNS.Prod) with the cert containing the new content, then tried restarting the process Myapp.APNS.Prod, but I'm still being flooded with errors like
[info] function=decode/3 line=136 module=ssl_alert TLS :client: In state :connection received SERVER ALERT: Fatal - Certificate Expired
Expected behavior
I'm hoping not to have to build a new load every year when the APPLE certs expire, So I need a way to install the pem in the running system and get the system to make use of it.
How do I update the config on a running system and get it to take effect?