I configured my CouchDB using HTTPS, using exactly the instructions given in the documentation (only that I changed the ssl port to 6161). And I created two admins. Then, when I tried to log in using cookie authentication, for example the following:
curl -kX POST https://localhost:6161/_session \
-H 'Content-Type:application/x-www-form-urlencoded' \
-d 'name=admin&password=admin'
The username and password are correct, as I can log in using the -ucurling option . But I always had a mistake unauthorized. I'm not sure what is wrong here. Thanks, advanced!
source
share