title: How to use AMQP python client for ActiveMQ
body: <p>I used <a href="https://pypi.org/project/amqp/" rel="nofollow noreferrer">amqp</a> client to connect ActiveMQ broker.</p>
  
  <pre><code>import amqp
  
  USER = "guest"
  PASSWORD = "guest"
  HOST = 'localhost'
  PORT = '5672'
  
  host = HOST + ":" + PORT
  
  conn = amqp.connection.Connection(host=host,userid=USER,password=PASSWORD,login_method='AMQPLAIN',ssl=True)
  conn.connect()
  </code></pre>
  
  <p>Getting error : OSError: Server unexpectedly closed connection </p>