vSRX
Highlighted
vSRX

curl: (1) Protocol "https" not supported or disabled in libcurl

a week ago

Hi Experts,

  I m  running Curl using https on Juniper-vSRX and seems like its not supported although i have tried latest Juniper version as well.As per juniper its supported please let me know how i can enable it if possible .

 

 

root@juniper-wc01-vsrx-vSRX-Node1:~ # curl https://www.keycdn.com

curl: (1) Protocol "https" not supported or disabled in libcurl

root@juniper-wc01-vsrx-vSRX-Node1:~ # 

 

link:

https://www.juniper.net/documentation/en_US/junos/topics/reference/general/junos-script-automation-l...

 

root@juniper-wc01-vsrx-vSRX-Node1> show version 

node0:

--------------------------------------------------------------------------

Hostname: juniper-wc01-vsrx-vSRX-Node0

Model: vsrx

Junos: 18.4R1-S1.3

 

The same command is working fine from my laptop.

 

SFAIZUL-M-CFN0:~ Shahid$ curl https://www.keycdn.com

<!DOCTYPE html>

<html lang="en" prefix="og: http://ogp.me/ns#">

    <head>

        <meta charset="utf-8">

        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

        <meta name="version" content="a36002f5685e2539952af5ff85c64abbb161d462">

 

        <title>KeyCDN - Content delivery made easy</title>

 

 

SFAIZUL-M-CFN0:~ Shahid$ curl --version

curl 7.54.0 (x86_64-apple-darwin18.0) libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1

Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 

Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy 

 

Regards

Faiz.

11 REPLIES 11
Highlighted
vSRX

Re: curl: (1) Protocol "https" not supported or disabled in libcurl

a week ago

seems like libcurl on vSRX  doesn't support SSL although its mentioned it support https any help can be highly appreciated .

 

https://www.juniper.net/documentation/en_US/junos/topics/reference/general/junos-script-automation-l...

 

Regards

Faiz.

Highlighted
vSRX

Re: curl: (1) Protocol "https" not supported or disabled in libcurl

a week ago

Hi,

can you please let us know the versions you've tried? By any chance one of the ones with the fix for this PR https://prsearch.juniper.net/PR1430187 ?

Regards

Ulf

--
If this worked for you please flag my post as an 'Accepted Solution' so others can benefit. A kudo would be cool if you think I earned it.
Highlighted
vSRX

Re: curl: (1) Protocol "https" not supported or disabled in libcurl

a week ago

I m running this version and the link u shared seems like its fixed in 18.4R3 , all we need to use https not http using curl command .

 

Hostname: juniper-wc01-vsrx-vSRX-Node0

Model: vsrx

Junos: 18.4R1-S1.3

 

Regards

Faiz.

Highlighted
vSRX

Re: curl: (1) Protocol "https" not supported or disabled in libcurl

a week ago

Hi Faiz,

not sure I get your reply:

1. I didn't say your issue is fixed in the PR I mentioned (although there is a chance) (but at least one issue ruled out)

2. you said "i have tried latest Juniper version as well" Which one was that?

Regards

Ulf

--
If this worked for you please flag my post as an 'Accepted Solution' so others can benefit. A kudo would be cool if you think I earned it.
Highlighted
vSRX

Re: curl: (1) Protocol "https" not supported or disabled in libcurl

a week ago

Let me take my statement back i tested on these versions Junos: 18.4R1-S1.3 and 15.1X49-D123.3 , could u please confirm if the issue is fixed/resolved in the releases mentioned in the PR1430187 ?

 

https://prsearch.juniper.net/InfoCenter/index?page=prcontent&id=PR1430187

 

Regards

Faiz.

Highlighted
vSRX

Re: curl: (1) Protocol "https" not supported or disabled in libcurl

a week ago

Hello Faiz,

 

I don't think the native CURL library of JunOS Shell supports https client mode. To leverage the curl extension libraries of libslax, you need to first call the libslax namespace ==> Refer to the document.

Again, I am not sure if calling the namespace inside the shell will help. Usually, it is a part of a SLAX script.

Regards,
Gokul
Highlighted
vSRX

Re: curl: (1) Protocol "https" not supported or disabled in libcurl

a week ago

Hi Faiz,

I didn't say PR1430187 has the fix for your issue. I'm merely zeroing in / process of elimination, hence I asked for your SW version(s).

Next question: Did you try a file copy https://... ?

Regards

Ulf

--
If this worked for you please flag my post as an 'Accepted Solution' so others can benefit. A kudo would be cool if you think I earned it.
Highlighted
vSRX

Re: curl: (1) Protocol "https" not supported or disabled in libcurl

Tuesday

rightnow i am only looking for curl if u can help that will be great .

Highlighted
vSRX

Re: curl: (1) Protocol "https" not supported or disabled in libcurl

Tuesday

I think I understand what you're looking for and I'm trying to help as best as I can. Knowing whether https works from the CLI would help me understand a bit better what's missing (where).

--
If this worked for you please flag my post as an 'Accepted Solution' so others can benefit. A kudo would be cool if you think I earned it.
Highlighted
vSRX

Re: curl: (1) Protocol "https" not supported or disabled in libcurl

Tuesday

Thanks a lot for looking into this let me know exactly what u want me to run .

Highlighted
vSRX

Re: curl: (1) Protocol "https" not supported or disabled in libcurl

Tuesday

Can you pretend to want to use the CLI for "curl https://www.keycdn.com"? So for example "file copy https://www.keycdn.com foo".

--
If this worked for you please flag my post as an 'Accepted Solution' so others can benefit. A kudo would be cool if you think I earned it.