如何从服务器下载文件(sso 和 https)
How to download file from server (sso and https)
是否可以通过命令行(当然是使用 linux)从使用 HTTPS + SSO(单点登录)的服务器下载文件?
带有 shibbolet 进程的单点登录系统 运行
已解决!!
wget --save-cookies sso.cookie --keep-session-cookies --header="Referer: https://serverCheckPoint/" 'https://serverCheckPoint/Shibboleth.sso/Login?target=https://ServerCheckPoint/path_Of_The_File_To_Read'
curl -b sso.cookie -c 2sso.cookie -L -k -f -s -S https://IDP_SERVER/PATH_of_loginPAge --data "USER=yourUser&password=YOURPASSWORD" -o localfile.html
wget -v --load-cookies 2sso.cookie --save-cookies auth2.cookie --keep-session-cookies https://CheckPointServer/Path_of_data/DATA_to_DOWNLOAD
文件 sso.cookie、2sso.cookie、auth.cookie 用于存储会话和 SAML 令牌。
如果证书有问题,您应该禁用对 TLS 证书的检查
是否可以通过命令行(当然是使用 linux)从使用 HTTPS + SSO(单点登录)的服务器下载文件?
带有 shibbolet 进程的单点登录系统 运行
已解决!!
wget --save-cookies sso.cookie --keep-session-cookies --header="Referer: https://serverCheckPoint/" 'https://serverCheckPoint/Shibboleth.sso/Login?target=https://ServerCheckPoint/path_Of_The_File_To_Read'
curl -b sso.cookie -c 2sso.cookie -L -k -f -s -S https://IDP_SERVER/PATH_of_loginPAge --data "USER=yourUser&password=YOURPASSWORD" -o localfile.html
wget -v --load-cookies 2sso.cookie --save-cookies auth2.cookie --keep-session-cookies https://CheckPointServer/Path_of_data/DATA_to_DOWNLOAD
文件 sso.cookie、2sso.cookie、auth.cookie 用于存储会话和 SAML 令牌。 如果证书有问题,您应该禁用对 TLS 证书的检查