I'm trying to unlock Jenkins 2 using the curl command in the VM where Jenkins Server is installed. I have the following:
curl 'admin:a84b61b7f2704b18ada3cbd32c3ad39e@127.0.0.1:8080/j_acegi_security_check -X POST -d {"from":"","j_username":"admin","j_password":"a84b61b7f2704b18ada3cbd32c3ad39e","Jenkins-Crumb":"90b3cf29bdf16c9790227a3f8a8674bf"}'
The secrets are showing but I have a bash variable for each one. When I execute the curl command I always have a 302 status code.
Someone can help me?