Advertisement
Guest User

Untitled

a guest
Mar 13th, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. $curl -k -v -H 'X-Storage-User: system:root' -H 'X-Storage-Pass: testpass' https://192.168.0.2:8080/auth/v1.0
  2. * About to connect() to 192.168.0.2 port 8080 (#0)
  3. * Trying 192.168.0.2... connected
  4. * successfully set certificate verify locations:
  5. * CAfile: none
  6. CApath: /etc/ssl/certs
  7. * SSLv3, TLS handshake, Client hello (1):
  8. * SSLv3, TLS handshake, Server hello (2):
  9. * SSLv3, TLS handshake, CERT (11):
  10. * SSLv3, TLS handshake, Server finished (14):
  11. * SSLv3, TLS handshake, Client key exchange (16):
  12. * SSLv3, TLS change cipher, Client hello (1):
  13. * SSLv3, TLS handshake, Finished (20):
  14. * SSLv3, TLS change cipher, Client hello (1):
  15. * SSLv3, TLS handshake, Finished (20):
  16. * SSL connection using AES256-SHA
  17. .....
  18. * SSL certificate verify result: self signed certificate (18), continuing anyway.
  19. > GET /auth/v1.0 HTTP/1.1
  20. > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
  21. > Host: 192.168.0.2:8080
  22. > Accept: */*
  23. > X-Storage-User: system:root
  24. > X-Storage-Pass: testpass
  25. >
  26. < HTTP/1.1 200 OK
  27. < X-Storage-Url: https://192.168.0.2:8080/v1/AUTH_system
  28. < X-Auth-Token: AUTH_tkc0c13e61189949f6bf43319597a7c6c9
  29. < Content-Type: text/html; charset=UTF-8
  30. < X-Storage-Token: AUTH_tkc0c13e61189949f6bf43319597a7c6c9
  31. < Content-Length: 0
  32. < Date: Thu, 13 Mar 2014 04:50:43 GMT
  33. <
  34. * Connection #0 to host 192.168.0.2 left intact
  35. * Closing connection #0
  36. * SSLv3, TLS alert, Client hello (1):
  37.  
  38. $curl -k -v -H 'X-Auth-Token: AUTH_tkc0c13e61189949f6bf43319597a7c6c9' https://192.168.0.2:8080/v1/AUTH_system
  39. * About to connect() to 192.168.0.2 port 8080 (#0)
  40. * Trying 192.168.0.2... connected
  41. * successfully set certificate verify locations:
  42. * CAfile: none
  43. CApath: /etc/ssl/certs
  44. * SSLv3, TLS handshake, Client hello (1):
  45. * SSLv3, TLS handshake, Server hello (2):
  46. * SSLv3, TLS handshake, CERT (11):
  47. * SSLv3, TLS handshake, Server finished (14):
  48. * SSLv3, TLS handshake, Client key exchange (16):
  49. * SSLv3, TLS change cipher, Client hello (1):
  50. * SSLv3, TLS handshake, Finished (20):
  51. * SSLv3, TLS change cipher, Client hello (1):
  52. * SSLv3, TLS handshake, Finished (20):
  53. * SSL connection using AES256-SHA
  54. ....
  55. * SSL certificate verify result: self signed certificate (18), continuing anyway.
  56. > GET /v1/AUTH_system HTTP/1.1
  57. > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
  58. > Host: 192.168.0.2:8080
  59. > Accept: */*
  60. > X-Auth-Token: AUTH_tkc0c13e61189949f6bf43319597a7c6c9
  61. >
  62. < HTTP/1.1 200 OK
  63. < Content-Length: 14
  64. < Accept-Ranges: bytes
  65. < X-Timestamp: 1394595745.80894
  66. < X-Account-Bytes-Used: 18
  67. < X-Account-Container-Count: 1
  68. < Content-Type: text/plain; charset=utf-8
  69. < X-Account-Object-Count: 1
  70. < Date: Thu, 13 Mar 2014 04:51:39 GMT
  71. <
  72. testcontainer
  73. * Connection #0 to host 192.168.0.2 left intact
  74. * Closing connection #0
  75. * SSLv3, TLS alert, Client hello (1):
  76.  
  77. And yet...
  78.  
  79. $ cloudfuse -d -o username=system:root,api_key=testpass,authurl=https://192.168.0.2:8080/auth/v1.0,debug=1 /media/runsmart_cloud/
  80. !!! Sending authentication request.
  81. * About to connect() to 192.168.0.2 port 8080 (#0)
  82. * Trying 192.168.0.2... * connected
  83. * successfully set certificate verify locations:
  84. * CAfile: none
  85. CApath: /etc/ssl/certs
  86. * SSL certificate problem, verify that the CA cert is OK. Details:
  87. error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
  88. * Closing connection #0
  89. * Peer certificate cannot be authenticated with given CA certificates
  90. Failed to authenticate.
  91.  
  92. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement