Resolved! Here’s the fix for steamdeck. But maybe you can get an idea.
You need to install openssl-1.1
1) Start desktop mode
2) Open terminal
3) Set password with a command
passwd
4) Turn off read-only
sudo steamos-readonly disable
5) Init pacman
sudo pacman-key --init
sudo pacman-key --populate
6) Install openssl 1.1
sudo pacman -S openssl-1.1
7) Turn on readonly
sudo steamos-readonly enable
That's all. Hope it will help someone too.