Categories
Mastering Development System & Network

Why is curl failing to download from cache.ruby-lang.org when ping works?

I have an issue similar to this: Wget, Curl, Yum Fail but Ping works – CentOS 5 In my case, I have 2 Ubuntu 18.04 servers which are failing to download from cache.ruby-lang.org: curl -O https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.3.tar.bz2 -v % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed […]

Categories
Mastering Development System & Network

Why my nodejs REST API doesn’t work on HTTPS?

I have droplet on Digital Ocean (I am novice to server setting). I use: Ubuntu, NGINX, Let’s encrypt certs, PM2. App is written in NUXT.JS and server side use Express for REST API. I can access my REST API just on HTTP. App is on port 8080 (I don’t know if is it ideal – […]

Categories
User Help

TLS handshake to microsoft.com hangs

Two Linux machines (Ubuntu 20.04 & 18.04.4 running on vSphere) behind NAT are not able to complete the TLS handshake to https://microsoft.com and https://mcr.microsoft.com, while they are able to connect to https://docs.microsoft.com and other websites. I manage the firewall and NAT myself (virtual VyOS router). Another system behind the same NAT is able to access […]

Categories
User Help

TLS handshake to microsoft.com hangs

Two Linux machines (Ubuntu 20.04 & 18.04.4 running on vSphere) behind NAT are not able to complete the TLS handshake to https://microsoft.com and https://mcr.microsoft.com, while they are able to connect to https://docs.microsoft.com and other websites. I manage the firewall and NAT myself (virtual VyOS router). Another system behind the same NAT is able to access […]

Categories
Development System & Network

HAproxy forward proxy with SSL termination

Problem: Iam trying to build a forward proxy with ssl termination, further it upstreams to my proxy servers eg: TOR. My upstream proxy services are non-https. Client -> Network-Haproxy -> Uptstream-Proxy -> Internet I could easily succeed in tcp mode of HAproxy without ssl termination, but when I terminate ssl and forward, things don’t work. […]

Categories
Development Linux Ubuntu

Can’t get TLSv1.3 to work with nginx 1.14.0 and OpenSSL 1.1.1 on Ubuntu 18.04.4

I’m going nuts here to trying to figure out how to enable TLSv1.3 on my nginx server. Based on my research, my setup should support it: # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.4 LTS Release: 18.04 Codename: bionic # uname -a Linux server 5.3.0-28-generic #30~18.04.1-Ubuntu SMP Fri Jan […]

Categories
Development

Intermittent CURL error 35 (SSL_CONNECT_ERROR) when performing a batch of requests

I’m attempting to monitor the status of around 110 websites. I’m using the curl_multi_* functions in PHP to make a GET request to them all every minute. In my most cases these are working fine, however I’m seeing what I’d consider to be a strangely high number of CURL error 35 (SSL_CONNECT_ERROR). Whilst there is […]

Categories
Development System & Network

Intermittent CURL error 35 (SSL_CONNECT_ERROR) when performing a batch of requests

I’m attempting to monitor the status of around 110 websites. I’m using the curl_multi_* functions in PHP to make a GET request to them all every minute. In my most cases these are working fine, however I’m seeing what I’d consider to be a strangely high number of CURL error 35 (SSL_CONNECT_ERROR). Whilst there is […]

Categories
Development

How to map a curl request in PHP to consume a soap service

EDIT: I need a way to consume a SOAP service using PHP. curl -vvvv -k -s -X POST –header ‘Content-type: text/xml;charset=”utf-8″‘ –header ‘SOAPAction: vend’ -u ‘USER’:’PIN’ -d “<soapenv:Envelope xmlns:soapenv=\”http://schemas.xmlsoap.org/soap/envelope/\” xmlns:soap=\”http://schemas.xmlsoap.org/soap/envelope/\”><soapenv:Header/><soapenv:Body><vend xmlns=\”http://host.vim.services.co.uk/xsd\”><sequence>6922343</sequence><origMsisdn>xxxxxxxxxxxxx </origMsisdn><destMsisdn>xxxxxxxxxxxxx</destMsisdn><amount>1000</amount><tariffTypeId>1</tariffTypeId></vend></soapenv:Body></soapenv:Envelope>” https://xxx.xxx.x.xxx:443/modlue/services/TargetOne ; echo; Already, I have this piece of curl request (above), which gives me a successful response as shown below. * Trying […]