Skip to content

Instantly share code, notes, and snippets.

@mumoshu
Created June 25, 2018 06:31
Show Gist options
  • Save mumoshu/33259e2b18199fe8ba50f9581e480d52 to your computer and use it in GitHub Desktop.
Save mumoshu/33259e2b18199fe8ba50f9581e480d52 to your computer and use it in GitHub Desktop.
$ curl -s -o /dev/null -w "%{http_code}" -v https://teleport.example.com:3080/webapi/ping/onelogin
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to teleport.example.com (127.0.0.1) port 3080 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.2 (IN), TLS handshake, Server hello (2):
{ [49 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [1122 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [333 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [70 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
{ [1 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: C=US; ST=CA; L=San Francisco; O=My organization; OU=My organizational unit; CN=teleport-proxy-server
* start date: Jun 23 08:09:00 2018 GMT
* expire date: Jun 23 08:09:00 2019 GMT
* subjectAltName: host "teleport.example.com" matched cert's "teleport.example.com"
* issuer: C=US; ST=CA; L=San Francisco; O=My organization; OU=My organizational unit; CN=example.com's private teleport proxy CA
* SSL certificate verify ok.
> GET /webapi/ping/onelogin HTTP/1.1
> Host: teleport.example.com:3080
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Cache-Control: no-cache, no-store, must-revalidate
< Content-Type: application/json
< Expires: 0
< Pragma: no-cache
< Date: Mon, 25 Jun 2018 06:30:20 GMT
< Content-Length: 127
<
{ [127 bytes data]
* Connection #0 to host teleport.example.com left intact
200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment