Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. "csrf-token":"d51e39d6440d0d08f5576121477efb7024bb74aa380481877e8a3b89949cd2f5"}+ loginctl show-user --property=Sessions jane
  2. Sessions=5
  3. + loginctl session-status 5
  4. 5 - jane (548800001)
  5. Since: Fri 2019-12-06 06:37:16 EST; 725ms ago
  6. Leader: 1791 (cockpit-session)
  7. Service: cockpit; type web; class user
  8. State: active
  9. Unit: session-5.scope
  10. |-1791 /usr/libexec/cockpit-session localhost
  11. `-1821 cockpit-bridge
  12. + loginctl terminate-session 5
  13. + systemctl stop cockpit.socket cockpit.service
  14. + printf '[WebService]
  15. ClientCertAuthentication = true
  16. ' >> /etc/cockpit/cockpit.conf
  17. + rm -f /etc/systemd/system/cockpit.service.d/notls.conf
  18. + systemctl daemon-reload
  19. + systemctl stop cockpit.service
  20. + systemctl start cockpit.socket
  21. + curl -ksS -D- --cert /var/tmp/jane.pem --key /var/tmp/jane.key https://localhost:9090/cockpit/login
  22. HTTP/1.1 200 OK
  23. WWW-Authenticate: *
  24. Set-Cookie: cockpit=dj0yO2s9MTA5NTkyOWMxMGU2YTBkYTk2ZTk4ZjNmMGViZTU5OGEzOGU4Nzg0OWViMWYxMDIwMmU3NGVkYjc4YTg3OWM2Nw==; Path=/; Secure; HttpOnly
  25. Content-Type: application/json
  26. Content-Length: 81
  27. Cache-Control: no-cache, no-store
  28. X-DNS-Prefetch-Control: off
  29. Referrer-Policy: no-referrer
  30. X-Content-Type-Options: nosniff
  31.  
  32. {"csrf-token":"e8fad6993219069aa37c5ff03ab091aca2836e9012ce9313e7cd41c13d4fd28d"}+ systemctl stop cockpit.socket cockpit.service
  33. + rm -f /etc/systemd/system/cockpit.service.d/notls.conf
  34. + systemctl daemon-reload
  35. + systemctl stop cockpit.service
  36. + systemctl start cockpit.socket
  37. + curl -ksS -D- -u jane:foobar https://localhost:9090/cockpit/login
  38. HTTP/1.1 200 OK
  39. WWW-Authenticate: *
  40. Set-Cookie: cockpit=dj0yO2s9MGFiM2E1MDk3NzFmZDkxNzBkYjIzMWFlM2VjOTEyNTA2MTVhY2FiMGNmYzUzOGM4M2E1ZTc1MWZhMDZhNWEwOQ==; Path=/; Secure; HttpOnly
  41. Content-Type: application/json
  42. Content-Length: 81
  43. Cache-Control: no-cache, no-store
  44. X-DNS-Prefetch-Control: off
  45. Referrer-Policy: no-referrer
  46. X-Content-Type-Options: nosniff
  47.  
  48. {"csrf-token":"be29a64134829a3375b00794f55f3b1c4809e29d0c513c5fe99f404a340c03d5"}+ loginctl show-user --property=Sessions jane
  49. Sessions=9
  50. + loginctl session-status 9
  51. 9 - jane (548800001)
  52. Since: Fri 2019-12-06 06:37:19 EST; 520ms ago
  53. Leader: 2117 (cockpit-session)
  54. Service: cockpit; type web; class user
  55. State: active
  56. Unit: session-9.scope
  57. |-2117 /usr/libexec/cockpit-session localhost
  58. `-2134 cockpit-bridge
  59. + loginctl terminate-session 9
  60. + systemctl stop cockpit.socket cockpit.service
  61. Press RET to continue...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement