<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>145819</bug_id>
          
          <creation_ts>2015-06-09 15:10:21 -0700</creation_ts>
          <short_desc>Websocket Invalid Certificate Error after accepting self signed certificate</short_desc>
          <delta_ts>2019-08-29 13:20:08 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fabio Rojas">frojas</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>dbates</cc>
    
    <cc>felix</cc>
    
    <cc>hypertree</cc>
    
    <cc>wilander</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1100809</commentid>
    <comment_count>0</comment_count>
    <who name="Fabio Rojas">frojas</who>
    <bug_when>2015-06-09 15:10:21 -0700</bug_when>
    <thetext>Steps to Repro:
- Get WebContent from Site A
- Have webcontent retrieve webpage from site B 
- Site B uses a self signed cert
- User accepts self signed cert but does not add it to keychain
- Have web content try to communicate with site B using Websocket
- See the the following error in the logs:

[Error] WebSocket network error: OSStatus Error -9807: Invalid certificate chain  (index.html, line 0)

- At this point if the browser navigates to site B it displays that the certificate on site B is trusted because the user has accepted it for this session

Seen on Safari Version 8.0.6 (10600.6.3)

Note:
- This works on:
Chrome Version 43.0.2357.124 (64-bit)
Firefox Version 38.0.5
IE: 10, 11 and Edge</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1100823</commentid>
    <comment_count>1</comment_count>
    <who name="Fabio Rojas">frojas</who>
    <bug_when>2015-06-09 15:27:02 -0700</bug_when>
    <thetext>Workaround: Add the self signed certificate from site B to the keychain</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1100920</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-06-09 21:51:45 -0700</bug_when>
    <thetext>rdar://problem/9697244</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1566351</commentid>
    <comment_count>3</comment_count>
    <who name="Sanjay Kumar">hypertree</who>
    <bug_when>2019-08-29 13:20:08 -0700</bug_when>
    <thetext>Is this being considered for implementation ?
Without Self signed certificate we can not connect IoT devices to mobile Safari. This is a huge problem.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>