Hi Christian,
I tried the following command to start SWUpdate
sudo swupdate -k public.pem -u '-t default -x -u https://<ip>:<port> -i 13'
But I still get the same error. Can you please let me know what I am missing? Thanks.
Hi Christian,
Further to my post on Friday, I did the following:
added my certificate to ca-certificates folder in /usr/share
Added the certificate name to ca-certificates.conf folder in /etc
After this, the initial error (Peer certificate cannot be authorized with given CA certificates) went away. But then it threw another error 'SSL peer certificate or SSH remote key was not OK'. Also, after sometime it is now giving me "Channel get operation failed (27): 'Out of memory'" error.
I am using --nocheckcert option in swupdate.
Below are my logs:
[TRACE] : SWUPDATE running : [network_initializer] : Main loop Daemon
[TRACE] : SWUPDATE running : [listener_create] : got no socket at /tmp/swupdateprog from systemd
[TRACE] : SWUPDATE running : [listener_create] : creating socket at /tmp/swupdateprog
[TRACE] : SWUPDATE running : [listener_create] : got no socket at /tmp/sockinstctrl from systemd
[TRACE] : SWUPDATE running : [listener_create] : creating socket at /tmp/sockinstctrl
* Trying 52.88.148.232...
* Connected to <ec2 instance , ip> port 443 (#0)
* SSL: couldn't create a context: error:140A90A1:lib(20):func(169):reason(161)
* Closing connection 0
[ERROR] : SWUPDATE failed [0] ERROR suricatta/channel_hawkbit.c : channel_get : 879 : Channel get operation failed (27): 'Out of memory'
[DEBUG] : SWUPDATE running : [suricatta_wait] : Sleeping for 45 seconds.
Can you please let me know how I can fix this?