NSImage initWithContentsOfURL over SSL

  • I'm trying to load an image into an NSImageView using NSImage
    initWithContentsOfURL. The URL I'm using has to be https, but the
    certificate is a not trusted 'default' certificate. When I load an
    image http it works fine, but when I try to use the SSL connection,
    the image wont load.

    Does anyone know how to set the connection to trust the certificate or
    ignore the warning...

    MB
  • sorry, dont think thats doable without dropping down to NSUrlRequest
    or CFHTTP*
    at least I didnt find a way ...

    Am Dec 7, 2007 um 1:47 PM schrieb Marcel Borsten:

    > I'm trying to load an image into an NSImageView using NSImage
    > initWithContentsOfURL. The URL I'm using has to be https, but the
    > certificate is a not trusted 'default' certificate. When I load an
    > image http it works fine, but when I try to use the SSL connection,
    > the image wont load.
    >
    >
    > Does anyone know how to set the connection to trust the certificate
    > or ignore the warning...
    >
    >
    > MB
  • On Dec 7, 2007, at 5:47 AM, Marcel Borsten wrote:

    > I'm trying to load an image into an NSImageView using NSImage
    > initWithContentsOfURL. The URL I'm using has to be https, but the
    > certificate is a not trusted 'default' certificate. When I load an
    > image http it works fine, but when I try to use the SSL connection,
    > the image wont load.
    >
    >
    > Does anyone know how to set the connection to trust the certificate
    > or ignore the warning...

    That's not possible without a method that returns an error, and even
    if you do handle the SSL error by using a certificate panel, the
    method to mark the URL as "trusted" is private for some reason.

    Nick Zitzmann
    <http://www.chronosnet.com/>
previous month december 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today