ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* TLS and externalfigure
@ 2014-03-30  3:12 Thangalin
  2014-03-30  9:24 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Thangalin @ 2014-03-30  3:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I have images hosted on a local web server using a self-signed
certificate. For example:

https://localhost/images/.../file.png

When using ConTeXt, the image cannot be retrieved; a verified signed
certificate works as expected.

Using wget, self-signed certificates can be forced:

wget --no-check-certificate https://localhost/images/.../file.png

Does ConTeXt have a way to ignore/bypass certificate validation? If so, how?

(Note: the certificate's common name is currently blank, which does
not match 'localhost' -- I can fix that if required...)

Thank you!
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: TLS and externalfigure
  2014-03-30  3:12 TLS and externalfigure Thangalin
@ 2014-03-30  9:24 ` Hans Hagen
  2014-03-30 20:03   ` Thangalin
  2014-03-30 21:22   ` Thangalin
  0 siblings, 2 replies; 4+ messages in thread
From: Hans Hagen @ 2014-03-30  9:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 3/30/2014 5:12 AM, Thangalin wrote:
> Hi,
>
> I have images hosted on a local web server using a self-signed
> certificate. For example:
>
> https://localhost/images/.../file.png
>
> When using ConTeXt, the image cannot be retrieved; a verified signed
> certificate works as expected.
>
> Using wget, self-signed certificates can be forced:
>
> wget --no-check-certificate https://localhost/images/.../file.png
>
> Does ConTeXt have a way to ignore/bypass certificate validation? If so, how?
>
> (Note: the certificate's common name is currently blank, which does
> not match 'localhost' -- I can fix that if required...)

a test:

in data-sch.lua you can find:

local function runcurl(name,cachename) -- we use sockets instead or the 
curl library when possible
     local command = "curl --silent --create-dirs --output " .. 
cachename .. " " .. name
     os.spawn(command)
end

you can try to add an option there, remake the format and see if that 
works i can see if we can add such an option (by default or setup)

Hans


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: TLS and externalfigure
  2014-03-30  9:24 ` Hans Hagen
@ 2014-03-30 20:03   ` Thangalin
  2014-03-30 21:22   ` Thangalin
  1 sibling, 0 replies; 4+ messages in thread
From: Thangalin @ 2014-03-30 20:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

http://wiki.contextgarden.net/Using_Graphics#HTTPS

Thank you, Hans.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: TLS and externalfigure
  2014-03-30  9:24 ` Hans Hagen
  2014-03-30 20:03   ` Thangalin
@ 2014-03-30 21:22   ` Thangalin
  1 sibling, 0 replies; 4+ messages in thread
From: Thangalin @ 2014-03-30 21:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Adding --insecure works. I think the option should be present by
default, which could save people time trying to understand what part
of the system is preventing the images from being downloaded. (For
example, for me I first checked caching, directory permissions, web
server configuration, and the wiki before posting to the list.)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-30 21:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-30  3:12 TLS and externalfigure Thangalin
2014-03-30  9:24 ` Hans Hagen
2014-03-30 20:03   ` Thangalin
2014-03-30 21:22   ` Thangalin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).