How to use Let's Encrypt cert & different hostname for Foreman 3.5 webserver?

Since I can’t edit my old posts: I tried what @ekohl suggested here, however I get the same error as in the first post with these options, so I guess something has changed in the last 1,5 years.