Re: Serving LetsEncrypt challenge from Jenkins

2018-03-16 Thread Daniel Beck

> On 16. Mar 2018, at 22:46, Simon Richter  wrote:
> 
> How would I make a file with a random name visible in the web tree (the
> file is not below /userContent/)?
> 
> Also, I'd like to bind Jenkins to port 443 — is there a sane way to make
> it bind the port and drop privileges, or do I need to create an ugly
> workaround?

The answer for both is the same: Use a reverse proxy.

(Or you can use e.g. iptables to forward 443 to 8080 for the second question.)

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5A849777-D0F2-4D31-85A8-1D7A0C12DA39%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Serving LetsEncrypt challenge from Jenkins

2018-03-16 Thread Simon Richter
Hi,

I'm trying to set up a Jenkins instance that uses LetsEncrypt to get an
SSL certificate. This instance should run inside a VM with no external
dependencies.

So, I'd like to start up Jenkins with a self-signed certificate
initially, then an external script comes along and puts a static file
into the web tree, which is then requested externally, the file is
subsequently deleted and then Jenkins is restarted to load the new
certificate.

How would I make a file with a random name visible in the web tree (the
file is not below /userContent/)?

Also, I'd like to bind Jenkins to port 443 — is there a sane way to make
it bind the port and drop privileges, or do I need to create an ugly
workaround?

   Simon

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/24b066b8-e453-a64b-10ba-572df88b6c2d%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.