Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "csrf-token":"d51e39d6440d0d08f5576121477efb7024bb74aa380481877e8a3b89949cd2f5"}+ loginctl show-user --property=Sessions jane
- Sessions=5
- + loginctl session-status 5
- 5 - jane (548800001)
- Since: Fri 2019-12-06 06:37:16 EST; 725ms ago
- Leader: 1791 (cockpit-session)
- Service: cockpit; type web; class user
- State: active
- Unit: session-5.scope
- |-1791 /usr/libexec/cockpit-session localhost
- `-1821 cockpit-bridge
- + loginctl terminate-session 5
- + systemctl stop cockpit.socket cockpit.service
- + printf '[WebService]
- ClientCertAuthentication = true
- ' >> /etc/cockpit/cockpit.conf
- + rm -f /etc/systemd/system/cockpit.service.d/notls.conf
- + systemctl daemon-reload
- + systemctl stop cockpit.service
- + systemctl start cockpit.socket
- + curl -ksS -D- --cert /var/tmp/jane.pem --key /var/tmp/jane.key https://localhost:9090/cockpit/login
- HTTP/1.1 200 OK
- WWW-Authenticate: *
- Set-Cookie: cockpit=dj0yO2s9MTA5NTkyOWMxMGU2YTBkYTk2ZTk4ZjNmMGViZTU5OGEzOGU4Nzg0OWViMWYxMDIwMmU3NGVkYjc4YTg3OWM2Nw==; Path=/; Secure; HttpOnly
- Content-Type: application/json
- Content-Length: 81
- Cache-Control: no-cache, no-store
- X-DNS-Prefetch-Control: off
- Referrer-Policy: no-referrer
- X-Content-Type-Options: nosniff
- {"csrf-token":"e8fad6993219069aa37c5ff03ab091aca2836e9012ce9313e7cd41c13d4fd28d"}+ systemctl stop cockpit.socket cockpit.service
- + rm -f /etc/systemd/system/cockpit.service.d/notls.conf
- + systemctl daemon-reload
- + systemctl stop cockpit.service
- + systemctl start cockpit.socket
- + curl -ksS -D- -u jane:foobar https://localhost:9090/cockpit/login
- HTTP/1.1 200 OK
- WWW-Authenticate: *
- Set-Cookie: cockpit=dj0yO2s9MGFiM2E1MDk3NzFmZDkxNzBkYjIzMWFlM2VjOTEyNTA2MTVhY2FiMGNmYzUzOGM4M2E1ZTc1MWZhMDZhNWEwOQ==; Path=/; Secure; HttpOnly
- Content-Type: application/json
- Content-Length: 81
- Cache-Control: no-cache, no-store
- X-DNS-Prefetch-Control: off
- Referrer-Policy: no-referrer
- X-Content-Type-Options: nosniff
- {"csrf-token":"be29a64134829a3375b00794f55f3b1c4809e29d0c513c5fe99f404a340c03d5"}+ loginctl show-user --property=Sessions jane
- Sessions=9
- + loginctl session-status 9
- 9 - jane (548800001)
- Since: Fri 2019-12-06 06:37:19 EST; 520ms ago
- Leader: 2117 (cockpit-session)
- Service: cockpit; type web; class user
- State: active
- Unit: session-9.scope
- |-2117 /usr/libexec/cockpit-session localhost
- `-2134 cockpit-bridge
- + loginctl terminate-session 9
- + systemctl stop cockpit.socket cockpit.service
- Press RET to continue...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement