Guest User

Untitled

a guest
Sep 27th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 KB | None | 0 0
  1. ssl_certificate /etc/nginx/ssl_certs/server-chain.crt;
  2. ssl_certificate_key /etc/nginx/ssl_certs/server.key;
  3. ssl_protocols TLSv1.2 ;
  4. ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:!SSLv3;
  5. ssl_prefer_server_ciphers on;
  6. ssl_session_timeout 10m;
  7. ssl_session_cache shared:SSL:10m;
  8. ssl_session_tickets off;
  9.  
  10. $ openssl s_client -connect www.example.com:39200 < /dev/null 2>&1
  11. CONNECTED(00000003)
  12. depth=2 C = GB, ST = London, L = London, O = Example Ltd, OU = Example Hosting Team, CN = Example Root Certificate Authority, emailAddress = info@Example.com
  13. verify return:1
  14. depth=1 C = GB, ST = London, L = London, O = Example Ltd, OU = Example Hosting Team, CN = Example Intermediate CA for project example, emailAddress = info@Example.com
  15. verify return:1
  16. depth=0 C = GB, ST = London, L = London, O = Example Ltd, OU = Example Hosting Team, CN = www.example.com, emailAddress = info@Example.com
  17. verify return:1
  18. ---
  19. Certificate chain
  20. 0 s:/C=GB/ST=London/L=London/O=Example Ltd/OU=Example Hosting Team/CN=www.example.com/emailAddress=info@Example.com
  21. i:/C=GB/ST=London/L=London/O=Example Ltd/OU=Example Hosting Team/CN=Example Intermediate CA for project example/emailAddress=info@Example.com
  22. 1 s:/C=GB/ST=London/L=London/O=Example Ltd/OU=Example Hosting Team/CN=Example Intermediate CA for project example/emailAddress=info@Example.com
  23. i:/C=GB/ST=London/L=London/O=Example Ltd/OU=Example Hosting Team/CN=Example Root Certificate Authority/emailAddress=info@Example.com
  24. ---
  25. Server certificate
  26. -----BEGIN CERTIFICATE-----
  27. ...
  28. -----END CERTIFICATE-----
  29. subject=/C=GB/ST=London/L=London/O=Example Ltd/OU=Example Hosting Team/CN=www.example.com/emailAddress=info@Example.com
  30. issuer=/C=GB/ST=London/L=London/O=Example Ltd/OU=Example Hosting Team/CN=Example Intermediate CA for project example/emailAddress=info@Example.com
  31. ---
  32. No client certificate CA names sent
  33. Peer signing digest: SHA512
  34. Server Temp Key: ECDH, P-256, 256 bits
  35. ---
  36. SSL handshake has read 2630 bytes and written 415 bytes
  37. ---
  38. New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384
  39. Server public key is 2048 bit
  40. Secure Renegotiation IS supported
  41. Compression: NONE
  42. Expansion: NONE
  43. No ALPN negotiated
  44. SSL-Session:
  45. Protocol : TLSv1.2
  46. Cipher : ECDHE-RSA-AES256-GCM-SHA384
  47. Session-ID: EEE677FB7C38DF8AEBEF68D22E67499D8D05710D819D5AB92BEF1B0A009DD818
  48. Session-ID-ctx:
  49. Master-Key: E423843C77F304B5D1D384DEA115AA2320128BCC824EC2B1C2F02D63A4F7B1671602F96C50DFFB9B7674C25466CF6162
  50. Key-Arg : None
  51. Krb5 Principal: None
  52. PSK identity: None
  53. PSK identity hint: None
  54. Start Time: 1538060858
  55. Timeout : 300 (sec)
  56. Verify return code: 0 (ok)
  57. ---
  58. DONE
  59.  
  60. curl -v --cacert Example_root_ca.crt https://example-elastic-data-vm.Example.com:39200
  61. * About to connect() to example-elastic-data-vm.Example.com port 39200 (#0)
  62. * Trying 10.2.253.69...
  63. * Connected to example-elastic-data-vm.Example.com (10.2.253.69) port 39200 (#0)
  64. * Initializing NSS with certpath: sql:/etc/pki/nssdb
  65. * CAfile: Example_root_ca.crt
  66. CApath: none
  67. * Server certificate:
  68. * subject: E=info@Example.com,CN=example-elastic-data-vm.Example.com,OU=Example Hosting Team,O=Example Ltd,L=London,ST=London,C=GB
  69. * start date: Sep 27 14:53:14 2018 GMT
  70. * expire date: Sep 26 14:53:14 2020 GMT
  71. * common name: example-elastic-data-vm.Example.com
  72. * issuer: E=info@Example.com,CN=Example Intermediate CA for project example,OU=Example Hosting Team,O=Example Ltd,L=London,ST=London,C=GB
  73. * NSS error -8182 (SEC_ERROR_BAD_SIGNATURE)
  74. * Peer's certificate has an invalid signature.
  75. * Closing connection 0
  76. curl: (60) Peer's certificate has an invalid signature.
  77. ...
  78.  
  79. An error occurred during a connection to example-elastic-data-vm.example.com:39200. security library: improperly formatted DER-encoded message. Error code: SEC_ERROR_BAD_DER
Add Comment
Please, Sign In to add comment