DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th July 2020
dnslc dnslc is offline
Port Guard
 
Join Date: Jun 2020
Location: Australia
Posts: 15
Default wget seg fault for SSL websites

Whenever I try to use wget to download a webpage that has SSL, it seg faults
Code:
$ wget http://cryptostorm.is/test
--2020-07-18 08:07:37--  http://cryptostorm.is/test
Resolving cryptostorm.is (cryptostorm.is)... 46.165.240.186
Connecting to cryptostorm.is (cryptostorm.is)|46.165.240.186|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://cryptostorm.is/test.cgi [following]
--2020-07-18 08:07:38--  https://cryptostorm.is/test.cgi
Connecting to cryptostorm.is (cryptostorm.is)|46.165.240.186|:443... connected.
ERROR: cannot verify cryptostorm.is's certificate, issued by 'CN=COMODO RSA Domain Validation Secure Server CA,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB':
  Unable to locally verify the issuer's authority.
To connect to cryptostorm.is insecurely, use `--no-check-certificate'.
Code:
$ wget http://cryptostorm.is/test --no-check-certificate
--2020-07-18 08:08:09--  http://cryptostorm.is/test
Resolving cryptostorm.is (cryptostorm.is)... 46.165.240.186
Connecting to cryptostorm.is (cryptostorm.is)|46.165.240.186|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://cryptostorm.is/test.cgi [following]
--2020-07-18 08:08:11--  https://cryptostorm.is/test.cgi
Connecting to cryptostorm.is (cryptostorm.is)|46.165.240.186|:443... connected.
WARNING: cannot verify cryptostorm.is's certificate, issued by 'CN=COMODO RSA Domain Validation Secure Server CA,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB':
  Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... [2]   Segmentation fault (core dumped) wget http://cryptostorm.is/test --no-check-certificate
and a `wget.core' file is created

Wget works just fine for http://www.google.com (non https, I have tried changing the link to http instead of https but cryptostorm only allows SSL)

I have also tried deleting the wget pkg and all of its dependencies and reinstalling them, but I still get the seg fault.

Is there another program I can use to just download a webpage?
Reply With Quote
  #2   (View Single Post)  
Old 18th July 2020
johnR johnR is offline
Fdisk Soldier
 
Join Date: Nov 2017
Posts: 56
Default

> Is there another program I can use to just download a webpage?

ftp(1)
Reply With Quote
  #3   (View Single Post)  
Old 18th July 2020
ibara ibara is offline
QEX author
 
Join Date: Jan 2014
Posts: 751
Default

I tried to reproduce this segfault on -current but could not. What version of OpenBSD and wget are you using? Is it possible for you to capture a backtrace?

In any event, there are other solutions. In-base ftp(1) natively understands HTTPS, so something like this will just work:
Code:
$ ftp http://cryptostorm.is/test
There is also net/curl which will install the ubiquitous cURL package. That also understands HTTPS.
Reply With Quote
  #4   (View Single Post)  
Old 19th July 2020
dnslc dnslc is offline
Port Guard
 
Join Date: Jun 2020
Location: Australia
Posts: 15
Default

Quote:
Originally Posted by ibara View Post
I tried to reproduce this segfault on -current but could not. What version of OpenBSD and wget are you using? Is it possible for you to capture a backtrace?

In any event, there are other solutions. In-base ftp(1) natively understands HTTPS, so something like this will just work:
Code:
$ ftp http://cryptostorm.is/test
There is also net/curl which will install the ubiquitous cURL package. That also understands HTTPS.
I posted this in the NetBSD forum, not sure why it was moved to OpenBSD.
I am using NetBSD 9.0 earmv7hf on a raspberry pi 3 B+

The ftp command works just fine though, thanks.
Reply With Quote
Reply

Tags
netbsd, wget

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
wget for offline reading kerasi General software and network 4 2nd January 2015 05:40 PM
wget: memory exhausted .. daemonfowl OpenBSD Packages and Ports 14 9th August 2013 07:09 PM
why do some websites refuse wget -r -m -k --no-parent ? daemonfowl General software and network 0 10th June 2013 05:18 PM
Mailserver for websites xCipherx FreeBSD Ports and Packages 4 13th April 2010 03:56 PM
wget Nk2Network OpenBSD Packages and Ports 3 27th February 2009 01:40 PM


All times are GMT. The time now is 04:33 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick