Good catch, both scripts assume that you run them s root. Copy/paste should work.    The problem consists of two factors 1) the certicates themself (fixed by the script in the first link if run as root), 2) an openssl library that is able to handle the used algorithms of the new issued Letsencrypt certificates, which at least requires openssl libraries v1.1.0 - DSM6.2.3u3 has 1.0.2-k.  Sorry to disapoint -> there is no way to fix this, except Synology fixes it.