title: When we run this code , we see additional ciphers other than the ones mentioned.How do we force enable specific ciphers only?
body: <p>pprint.pprint(context.get_ciphers()) prints additional ciphers too. How do we force the usage of ciphers and extensions ?</p>
  <pre><code>import socket, ssl
  import pprint
  import ssl
  context = ssl.create_default_context()
  CIPHERS =&quot;ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-CHACHA20-POLY1305-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305-SHA256:ECDHE-RSA-AES128-CBC-SHA:ECDHE-ECDSA-AES128-CBC-SHA:ECDHE-RSA-AES256-CBC-SHA:ECDHE-ECDSA-AES256-CBC-SHA:RSA-AES128-GCM-SHA256:RSA-AES256-GCM-SHA384:RSA-AES128-CBC-SHA:RSA-AES256-CBC-SHA:ECDHE-RSA-3DES-EDE-CBC-SHA:RSA-3DES-EDE-CBC-SHA:AES128-GCM-SHA256:CHACHA20-POLY1305-SHA256:AES:256-GCM-SHA384&quot;
  context.set_ciphers(CIPHERS)
  pprint.pprint(context.get_ciphers())
  s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  domain = 'google.com'
  sslSocket = context.wrap_socket(s, server_hostname = domain)
  sslSocket.connect((domain, 443))
  #context.options |= ssl.OP_NO_SSLv2
  #context.options |= ssl.OP_NO_SSLv3
  print(sslSocket.cipher())
  print(sslSocket.version())
  print(ssl.OPENSSL_VERSION)
  sslSocket.close()
  
  </code></pre>