Let me know if more or different information needs to be provided. I don't want to add too much if it's unnecessary.
I'm trying to incorporate Wagtail recaptcha to a contact me form. I can do the google captcha just fine, but once I hit submit I run into an error. I am currently running into this error: SSL: CERTIFICATE_VERIFY_FAILED which you can see here https://pastebin.com/4WaqX1xT
In my current setup I'm using ./ngrok 8000
. My wagtail application runs on localhost:8000
These are the domains I have on google recaptcha admin panel
localhost
whateverlettersgeneratedby.ngrok.io
127.0.0.1
In my settings base.py I have this included to my INSTALLED_APPS
INSTALLED_APPS = [
...
'sslserver',
'captcha',
'wagtailcaptcha',
...
]
That being said, I did try django-sslserver and received the same error. HTTPS was crossed out when I went to the url using HTTPS instead of HTTP.
Also in base.py I am using Google Recaptcha's development keys. Using my actual keys also result in the same error being generated.
RECAPTCHA_PUBLIC_KEY = '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI'
RECAPTCHA_PRIVATE_KEY = '6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe'
NOCAPTCHA = True
RECAPTCHA_USE_SSL = False
SECURE_SSL_REDIRECT = False
Other things I've tried: stunnel, I get a 403 regarding CSRF Verification Failure https://pastebin.com/JXWVWNJq
My stunnel setup was from http://userpath.co/blog/a-simple-way-to-run-https-on-localhost/ Then I did the command below, but HTTPS was crossed out when I tried going to the url using HTTPS.
HTTPS=on python manage.py runserver
My Jinja template does use csrf token https://pastebin.com/meXdkbfC