Sponsored Content
Full Discussion: HTTPS connection unix
Top Forums UNIX for Advanced & Expert Users HTTPS connection unix Post 52482 by obitus on Sunday 20th of June 2004 03:35:51 AM
Old 06-20-2004
You'll need a console client that supports SSL.

Debian for example has the 'lynx-ssl' package.

Check if your distro has an SSL-enabled lynx package, the use something like:


lynx --source https://www.domain.com/sslfile.html > sslfile.html

This will fetch https://www.domain.com/sslfile.html and save it as sslfile.html.


Also check the man pages for wget and curl.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File Upload Performance using IE from Windows to Unix via HTTPS

Hi, Is there any performance issue uploading a file using IE from Windows client to UNIX server via HTTPS? Before that, we were using HTTP protocol and everything run smooth Once we change to HTTPS, we might hit the "HTTP 500 Internal server error" Even though this does not happen all the... (1 Reply)
Discussion started by: darontan
1 Replies

2. UNIX for Dummies Questions & Answers

file transfer from https to a Unix box

Hi, I want to transfer a file from a https side to an unix machine, somebody can let me know a easy way to do so, A simple script to be put in the unix machine to retrieve the file from the https side Thanks (4 Replies)
Discussion started by: jvjaimes
4 Replies

3. Shell Programming and Scripting

Extracting data from https server with the help of unix shell script

There is a folder which can be accessed through URL by giving a particular Username and Password.Inside the folder there are few excel sheets.The excel sheets/folder need to be imported from there to unix box with the help of unix shell script. Can anyone help me?Does anyone have code for it?... (2 Replies)
Discussion started by: vanur
2 Replies

4. UNIX for Dummies Questions & Answers

Pulling a file from Unix box thru https

Hi I have a file called as MSD.DAT. This file is present at a directory on a server. www.ta.ibhsv.somewhere.com/rahdf/MSD.DAT Now, I want to get this file from this server to my Linux box. I need to write a script that uses https to get the file. Please help how to achieve this. ... (3 Replies)
Discussion started by: infyanurag
3 Replies

5. UNIX for Dummies Questions & Answers

Get files using https mode in unix scripts

Hello Friends, I have a requirement to connect and get files from a server using https protocol. 1) COuld you please advise on how to establish connection between my server and remote server to get files using https mode. any special procedure apart from FTP ? 2) also give me some code... (5 Replies)
Discussion started by: mohanpadamata
5 Replies

6. Solaris

Solaris 10 ftp connection problem (connection refused, connection timed out)

Hi everyone, I am hoping anyone of you could help me in this weird problem we have in 1 of our Solaris 10 servers. Lately, we have been having some ftp problems in this server. Though it can ping any server within the network, it seems that it can only ftp to a select few. For most servers, the... (4 Replies)
Discussion started by: labdakos
4 Replies

7. UNIX and Linux Applications

Problems with wget and https connection

Hi, I have wget for linux but I'm having trouble using it. I am trying to use it with a HTTPS connection to save cookies but it doesn't works. I do: wget --save-cookies=cookies.txt --post-data... (2 Replies)
Discussion started by: mierdatuti
2 Replies

8. UNIX for Advanced & Expert Users

Https connection to UNIX DUT failing

HI !! I have this setup where I have Windows machine and a UNIX based DUT . I try to make a https connection from my Win to the DUT giving its IP. But,it is not working (It should do). What do u think the problem is ?? I checked the logs , they flag some writesocket:broken pipe error in... (1 Reply)
Discussion started by: leghorn
1 Replies

9. Solaris

Need suggestion:- Failed HTTPS transfer to https://supportfiles.sun.com/curl

Hi Guys, I have recently started reciving below Error message Failed HTTPS transfer to https://supportfiles.sun.com/curl whenever I run /usr/local/bin/sudo /opt/SUNWexplo/bin/explorer -P -q -v from all Servers. Looks like the SSL certificate as Expired. Whenever I type... (4 Replies)
Discussion started by: manalisharmabe
4 Replies
TSGET(1SSL)							      OpenSSL							       TSGET(1SSL)

NAME
tsget - Time Stamping HTTP/HTTPS client SYNOPSIS
tsget -h server_url [-e extension] [-o output] [-v] [-d] [-k private_key.pem] [-p key_password] [-c client_cert.pem] [-C CA_certs.pem] [-P CA_path] [-r file:file...] [-g EGD_socket] [request]... DESCRIPTION
The tsget command can be used for sending a time stamp request, as specified in RFC 3161, to a time stamp server over HTTP or HTTPS and storing the time stamp response in a file. This tool cannot be used for creating the requests and verifying responses, you can use the OpenSSL ts(1) command to do that. tsget can send several requests to the server without closing the TCP connection if more than one requests are specified on the command line. The tool sends the following HTTP request for each time stamp request: POST url HTTP/1.1 User-Agent: OpenTSA tsget.pl/<version> Host: <host>:<port> Pragma: no-cache Content-Type: application/timestamp-query Accept: application/timestamp-reply Content-Length: length of body ...binary request specified by the user... tsget expects a response of type application/timestamp-reply, which is written to a file without any interpretation. OPTIONS
-h server_url The URL of the HTTP/HTTPS server listening for time stamp requests. -e extension If the -o option is not given this argument specifies the extension of the output files. The base name of the output file will be the same as those of the input files. Default extension is '.tsr'. (Optional) -o output This option can be specified only when just one request is sent to the server. The time stamp response will be written to the given output file. '-' means standard output. In case of multiple time stamp requests or the absence of this argument the names of the output files will be derived from the names of the input files and the default or specified extension argument. (Optional) -v The name of the currently processed request is printed on standard error. (Optional) -d Switches on verbose mode for the underlying curl library. You can see detailed debug messages for the connection. (Optional) -k private_key.pem (HTTPS) In case of certificate-based client authentication over HTTPS <private_key.pem> must contain the private key of the user. The private key file can optionally be protected by a passphrase. The -c option must also be specified. (Optional) -p key_password (HTTPS) Specifies the passphrase for the private key specified by the -k argument. If this option is omitted and the key is passphrase protected tsget will ask for it. (Optional) -c client_cert.pem (HTTPS) In case of certificate-based client authentication over HTTPS <client_cert.pem> must contain the X.509 certificate of the user. The -k option must also be specified. If this option is not specified no certificate-based client authentication will take place. (Optional) -C CA_certs.pem (HTTPS) The trusted CA certificate store. The certificate chain of the peer's certificate must include one of the CA certificates specified in this file. Either option -C or option -P must be given in case of HTTPS. (Optional) -P CA_path (HTTPS) The path containing the trusted CA certificates to verify the peer's certificate. The directory must be prepared with the c_rehash OpenSSL utility. Either option -C or option -P must be given in case of HTTPS. (Optional) -rand file:file... The files containing random data for seeding the random number generator. Multiple files can be specified, the separator is ; for MS- Windows, , for VMS and : for all other platforms. (Optional) -g EGD_socket The name of an EGD socket to get random data from. (Optional) [request]... List of files containing RFC 3161 DER-encoded time stamp requests. If no requests are specified only one request will be sent to the server and it will be read from the standard input. (Optional) ENVIRONMENT VARIABLES
The TSGET environment variable can optionally contain default arguments. The content of this variable is added to the list of command line arguments. EXAMPLES
The examples below presume that file1.tsq and file2.tsq contain valid time stamp requests, tsa.opentsa.org listens at port 8080 for HTTP requests and at port 8443 for HTTPS requests, the TSA service is available at the /tsa absolute path. Get a time stamp response for file1.tsq over HTTP, output is written to file1.tsr: tsget -h http://tsa.opentsa.org:8080/tsa file1.tsq Get a time stamp response for file1.tsq and file2.tsq over HTTP showing progress, output is written to file1.reply and file2.reply respectively: tsget -h http://tsa.opentsa.org:8080/tsa -v -e .reply file1.tsq file2.tsq Create a time stamp request, write it to file3.tsq, send it to the server and write the response to file3.tsr: openssl ts -query -data file3.txt -cert | tee file3.tsq | tsget -h http://tsa.opentsa.org:8080/tsa -o file3.tsr Get a time stamp response for file1.tsq over HTTPS without client authentication: tsget -h https://tsa.opentsa.org:8443/tsa -C cacerts.pem file1.tsq Get a time stamp response for file1.tsq over HTTPS with certificate-based client authentication (it will ask for the passphrase if client_key.pem is protected): tsget -h https://tsa.opentsa.org:8443/tsa -C cacerts.pem -k client_key.pem -c client_cert.pem file1.tsq You can shorten the previous command line if you make use of the TSGET environment variable. The following commands do the same as the previous example: TSGET='-h https://tsa.opentsa.org:8443/tsa -C cacerts.pem -k client_key.pem -c client_cert.pem' export TSGET tsget file1.tsq AUTHOR
Zoltan Glozik <zglozik@opentsa.org>, OpenTSA project (http://www.opentsa.org) SEE ALSO
openssl(1), ts(1), curl(1), RFC 3161 1.0.0e 2013-02-18 TSGET(1SSL)
All times are GMT -4. The time now is 05:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy