Trying to install CMake 3.17.3 on Ubuntu

You need to install libssl-dev:

$ sudo apt-get install libssl-dev

Alternatively, since you’re using Ubuntu, you can try our Ubuntu builds at https://apt.kitware.com/.