Quantcast
Channel: Multimediaforum
Viewing all articles
Browse latest Browse all 4603

SSL Fehler bei WEBDAV Upload

$
0
0
Hallo,

ich habe auf meinem Linuxserver (SLES11) ein Webdav eingerichtet. Ein dateiupload mit CURL Funktioniert auch wenn ich die URL angebe.
Code:

FL:$ curl --insecure --upload-file testfile.txt https://<URL>.com/upload/hro/ -u hro:$HRO_WEBDAV_PASSWORD
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>201 Created</title>
</head><body>
<h1>Created</h1>
<p>Resource /upload/hro/testfile.txt has been created.</p>
<hr />
<address>IBM_HTTP_Server Server at <URL> Port 443</address>

Versuche ich das gleiche mit localhost bekomme ich einen SSL fehler

Code:

FL:$ curl --insecure --upload-file testfile.txt https://localhost/upload/hro/ -u hro:$HRO_WEBDAV_PASSWORD
curl: (51) SSL peer certificate or SSH remote key was not OK

was ja auch verständlich ist da mein Zertifikat auf den URL Namen ausgestellt ist und nicht auf localhost. Aber ich dachte genau das wird mit --insecure ignoriert - tut er aber nicht. Ich bilde mir sogar ein, das ging früher schon mal.

Viewing all articles
Browse latest Browse all 4603