Description
The shapeshifter library will send a flex message to any endpoint (http or https), whereas the specification states that only encrypted communication should be allowed.
Fix
We should add a check before setting up a connection, that verifies whether
- the endpoint uses
https; if the endpoint is http then an exception should be thrown.
- the endpoint URL either contains no port, or contains port
443