[web2py] Re: letsencrypt google appengine with web2py

2020-03-31 Thread Jacinto Parga
It is no longer necessary as Google appengine gives autogenerated ssl 
certificates if you want:

[image: settings-mereba.png]


 

El viernes, 7 de junio de 2019, 3:59:29 (UTC+2), Daniel Guilhermino 
escribió:
>
> Dude ... thanks a lot! After hours, this answer helped me a lot!
>
> Many... Many thanks!
>
> Em domingo, 6 de março de 2016 16:30:42 UTC-3, Jacinto Parga escreveu:
>>
>> With GAE deployed apps...
>>
>> The best solution I've found is using an error handler and a redirection 
>> to the static file with the letsencrypt response. Something like this:
>>
>> In routes.py:
>>
>> routes_onerror = [
>> ('myapp/*', '/myapp/default/error_handler')
>> ]
>>
>> In the error_handler controller:
>>
>> def error_handler():
>> ...
>>   requested_uri = request.vars.requested_uri
>>   if str(requested_uri)[:28] == "/.well-known/acme-challenge/" :
>> redirect("http://mysite/filewithaccesstoletsencrypt.txt;)
>> ...
>>
>>
>>
>>
>> El lunes, 7 de diciembre de 2015, 10:24:48 (UTC+1), Jacinto Parga 
>> escribió:
>>>
>>> Hi, 
>>>
>>> I want to use letsencrypt ssl certificates ( https://letsencrypt.org/ ) 
>>> in a web2py application deployed on GAE.
>>>
>>> There is a good explanation about how to get it:  
>>> http://blog.seafuj.com/lets-encrypt-on-google-app-engine
>>>
>>> But I don't know how to deploy a view like : http://
>>> www.example.com/.well-known/acme-challenge/[challenge] 
>>> 
>>>
>>> I have given all steps, I have created the certificates and the keys. 
>>> The only thing I need is to create a view to let letsencrypt to confirm the 
>>> proper response.
>>>
>>> In other words, I need to make this code work on web2py: 
>>> class LetsEncryptHandler(RequestHandler):
>>>
>>> def get(self, challenge):
>>> self.response.headers['Content-Type'] = 'text/plain'
>>> responses = {
>>> '[challenge 1]': '[response 1]'
>>> '[challenge 2]': '[response 2]'
>>> }
>>> self.response.write(responses.get(challenge, ''))
>>>
>>> application = WSGIApplication([
>>> ('/.well-known/acme-challenge/([\w-]+)', LetsEncryptHandler),
>>> ])...
>>>
>>> Any idea?
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/55d5ae88-f491-4465-a5a6-904a2c647ce9%40googlegroups.com.


[web2py] Re: letsencrypt google appengine with web2py

2019-06-06 Thread Daniel Guilhermino
Dude ... thanks a lot! After hours, this answer helped me a lot!

Many... Many thanks!

Em domingo, 6 de março de 2016 16:30:42 UTC-3, Jacinto Parga escreveu:
>
> With GAE deployed apps...
>
> The best solution I've found is using an error handler and a redirection 
> to the static file with the letsencrypt response. Something like this:
>
> In routes.py:
>
> routes_onerror = [
> ('myapp/*', '/myapp/default/error_handler')
> ]
>
> In the error_handler controller:
>
> def error_handler():
> ...
>   requested_uri = request.vars.requested_uri
>   if str(requested_uri)[:28] == "/.well-known/acme-challenge/" :
> redirect("http://mysite/filewithaccesstoletsencrypt.txt;)
> ...
>
>
>
>
> El lunes, 7 de diciembre de 2015, 10:24:48 (UTC+1), Jacinto Parga escribió:
>>
>> Hi, 
>>
>> I want to use letsencrypt ssl certificates ( https://letsencrypt.org/ ) 
>> in a web2py application deployed on GAE.
>>
>> There is a good explanation about how to get it:  
>> http://blog.seafuj.com/lets-encrypt-on-google-app-engine
>>
>> But I don't know how to deploy a view like : http://
>> www.example.com/.well-known/acme-challenge/[challenge] 
>> 
>>
>> I have given all steps, I have created the certificates and the keys. The 
>> only thing I need is to create a view to let letsencrypt to confirm the 
>> proper response.
>>
>> In other words, I need to make this code work on web2py: 
>> class LetsEncryptHandler(RequestHandler):
>>
>> def get(self, challenge):
>> self.response.headers['Content-Type'] = 'text/plain'
>> responses = {
>> '[challenge 1]': '[response 1]'
>> '[challenge 2]': '[response 2]'
>> }
>> self.response.write(responses.get(challenge, ''))
>>
>> application = WSGIApplication([
>> ('/.well-known/acme-challenge/([\w-]+)', LetsEncryptHandler),
>> ])...
>>
>> Any idea?
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/89842157-1f2e-4125-a7b2-e695322600ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: letsencrypt google appengine with web2py

2016-03-06 Thread Jacinto Parga
With GAE deployed apps...

The best solution I've found is using an error handler and a redirection to 
the static file with the letsencrypt response. Something like this:

In routes.py:

routes_onerror = [
('myapp/*', '/myapp/default/error_handler')
]

In the error_handler controller:

def error_handler():
...
  requested_uri = request.vars.requested_uri
  if str(requested_uri)[:28] == "/.well-known/acme-challenge/" :
redirect("http://mysite/filewithaccesstoletsencrypt.txt;)
...




El lunes, 7 de diciembre de 2015, 10:24:48 (UTC+1), Jacinto Parga escribió:
>
> Hi, 
>
> I want to use letsencrypt ssl certificates ( https://letsencrypt.org/ ) 
> in a web2py application deployed on GAE.
>
> There is a good explanation about how to get it:  
> http://blog.seafuj.com/lets-encrypt-on-google-app-engine
>
> But I don't know how to deploy a view like : http://
> www.example.com/.well-known/acme-challenge/[challenge] 
> 
>
> I have given all steps, I have created the certificates and the keys. The 
> only thing I need is to create a view to let letsencrypt to confirm the 
> proper response.
>
> In other words, I need to make this code work on web2py: 
> class LetsEncryptHandler(RequestHandler):
>
> def get(self, challenge):
> self.response.headers['Content-Type'] = 'text/plain'
> responses = {
> '[challenge 1]': '[response 1]'
> '[challenge 2]': '[response 2]'
> }
> self.response.write(responses.get(challenge, ''))
>
> application = WSGIApplication([
> ('/.well-known/acme-challenge/([\w-]+)', LetsEncryptHandler),
> ])...
>
> Any idea?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: letsencrypt google appengine with web2py

2015-12-14 Thread Jacinto Parga
Solved, thanks. It doesn't have to do with web2py. I solved it just with 
letsencrypt configuration.

El lunes, 7 de diciembre de 2015, 10:24:48 (UTC+1), Jacinto Parga escribió:
>
> Hi, 
>
> I want to use letsencrypt ssl certificates ( https://letsencrypt.org/ ) 
> in a web2py application deployed on GAE.
>
> There is a good explanation about how to get it:  
> http://blog.seafuj.com/lets-encrypt-on-google-app-engine
>
> But I don't know how to deploy a view like : http://
> www.example.com/.well-known/acme-challenge/[challenge] 
> 
>
> I have given all steps, I have created the certificates and the keys. The 
> only thing I need is to create a view to let letsencrypt to confirm the 
> proper response.
>
> In other words, I need to make this code work on web2py: 
> class LetsEncryptHandler(RequestHandler):
>
> def get(self, challenge):
> self.response.headers['Content-Type'] = 'text/plain'
> responses = {
> '[challenge 1]': '[response 1]'
> '[challenge 2]': '[response 2]'
> }
> self.response.write(responses.get(challenge, ''))
>
> application = WSGIApplication([
> ('/.well-known/acme-challenge/([\w-]+)', LetsEncryptHandler),
> ])...
>
> Any idea?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: letsencrypt google appengine with web2py

2015-12-14 Thread Dave S


On Monday, December 14, 2015 at 4:38:07 AM UTC-8, Jacinto Parga wrote:
>
> Solved, thanks. It doesn't have to do with web2py. I solved it just with 
> letsencrypt configuration.
>

Thanks for posting the followup.  It's good too know you aren't sitting 
there lost; maybe some of the rest of us will find our way eventually   :-)

/dps


 

>
> El lunes, 7 de diciembre de 2015, 10:24:48 (UTC+1), Jacinto Parga escribió:
>>
>> Hi, 
>>
>> I want to use letsencrypt ssl certificates ( https://letsencrypt.org/ ) 
>> in a web2py application deployed on GAE.
>>
>> There is a good explanation about how to get it:  
>> http://blog.seafuj.com/lets-encrypt-on-google-app-engine
>>
>> But I don't know how to deploy a view like : http://
>> www.example.com/.well-known/acme-challenge/[challenge] 
>> 
>>
>> I have given all steps, I have created the certificates and the keys. The 
>> only thing I need is to create a view to let letsencrypt to confirm the 
>> proper response.
>>
>> In other words, I need to make this code work on web2py: 
>> class LetsEncryptHandler(RequestHandler):
>>
>> def get(self, challenge):
>> self.response.headers['Content-Type'] = 'text/plain'
>> responses = {
>> '[challenge 1]': '[response 1]'
>> '[challenge 2]': '[response 2]'
>> }
>> self.response.write(responses.get(challenge, ''))
>>
>> application = WSGIApplication([
>> ('/.well-known/acme-challenge/([\w-]+)', LetsEncryptHandler),
>> ])...
>>
>> Any idea?
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.