We are attempting to connect to a WebDAV server using net use over SSL. On some servers we're seeing an issue in which this connection only succeeds if we specify port 443 in the URL.
Does Map
net use * "https://example.com:443/folder"
net use * "\\example.com@SSL@443\folder"
and, bizarrely, so does this:
net use * "\\example.com@SSLasdf\folder"
Does Not Map
net use * "https://example.com/folder"
net use * "\\example.com@SSL\folder"
In the non-working cases we consistently receive the following error:
System error 67 has occured.
The network name cannot be found.
We have noticed some things that might be useful information:
We are utterly stumped. Any theories?
Today, we'll answer one of the most common questions we get: “What port does SSL use?” Or, to put it other way that people ask: what are some of the most common SSL certificate port numbers that are used?” And the answer is none. SSL/TLS does not itself use any port — HTTPS uses port 443.
Short answer: yes, you can! Long answer comes here: Can I use another port other than 443 for SSL communication? SSL is in no way tied to a single port value; in fact, as a protocol, it can be used over any transport medium, as long as that medium provides a bidirectional stream for arbitrary bytes.
Because data can be sent with or without the use of SSL, one way to indicate a secure connection is by the port number. By default, HTTPS connections use TCP port 443. HTTP, the unsecure protocol, uses port 80.
You can change the default port numbers for HTTP and HTTPS protocols.
You are seeing different behaviors because you are connecting using different names. Once a name has been attempted and failed, the WebClient (this is the service that enables WebDAV) will cache the response for a period. To clear the cache, locate the WebClient service in the Services console and restart it. Or from an administrative command prompt execute the following command:
net.exe stop webclient && net.exe start webclient
We ultimately determined that we were mis-interpreting the System Error 67
that net use
was returning. We discovered two interesting things:
In the event that the WebDAV returns a 404 or a 50x on the initial, root folder PROPFIND
, net use
will (rightly) interpret this as the root folder being unavailable. The fact that it says the network name could not be found let us to believe that the problem was with the name resolution, but it was really just saying, 'hey, I couldn't find anything at this path.'
If 'net use' fails due to a 404/50x, it appears that for a brief period of time it will automatically fail any additional mappings for that same host without issuing a request. For example, if net use http://me.com/foo
returns a 404, then net use http://me.com/bar
will instantly fail if made in rapid succession to that first call, and no request record will be seen in the WebDAV server logs.
My best guess is that appending the @443
port didn't make any real difference. What it perhaps did do was to trick net use
into thinking it was talking to a different host, at least for the purposes of its 'auto-fail' feature. But that's just a guess.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With