DDP.connect failed with https

This Meteor server method tries to connect to an external app (my other app) using [ongoworks:ddp-login][1] package, on externa_url = 'http://www.mydomain.com'.

Meteor.methods({
  'external': () => {
    let externa_url = 'http://www.mydomain.com'; 
    let conn = DDP.connect(external_url);

    DDP.loginWithPassword(conn, {
      username: 'externalApp_username'
    }, 'and_password', function(error) {
      if (!error) {
        console.log("Logged in!");
        conn.call('external_app_method', function(err, res) {
          console.log(res);
        });
      } else {
        console.log(error);
      }
    });
  }
});

It works fine, the external app runs on Galaxy with Encryption is enabled.
Galaxy make available SSL to use on demand “please see below”

Problems scenarios:

Scenario 1:
Galaxy Domain Encryption: force HTTPS

stream error Error during WebSocket handshake: Unexpected response code: 301

Scenario 2:
Galaxy Domain Encryption: force HTTPS
Useing htts in externa_url = 'https://www.mydomain.com'

stream error Network error: wss://www.mydomain.com/websocket: Hostname/IP doesn’t match certificate’s altnames: “Host: www.mydomain.com. is not in the cert’s altnames: DNS:www.meteor.com”

I would like to use the https with Galaxy force HTTPS for security but not very familier with SSL/DDP.
Any suggestions on how to connect to my external app from another app with https? Thanks
[1]: https://atmospherejs.com/ongoworks/ddp-login

Hi wondering if you resolved this? I upgraded from 1.3 to 1.4 and started getting this error

As good a system as Galaxy is, being too far a region from my location, I sense have been trying a different hosting provider