Well, I think I've finally "solved" it: The error had nothing to do, neither with Nim, nor my code, or my local openssl configuration. The problem was with a particular server (I guess).
I was trying to directly download a file from `raw.githubusercontent.com`...