title: Error when connecting nesjs app to SQL Server Express : failed to connect to localhost:1433 - self signed certificate
body: <p>I am trying to connect my nestjs app to SQL Server Express, but I get this error:</p>
  <blockquote>
  <p>ConnectionError: Failed to connect to localhost:1433 - self signed certificate</p>
  </blockquote>
  <p>Note: port 1433 is open and I am able to connect via SSMS:</p>
  <pre><code>import { Module } from '@nestjs/common';
  import { TypeOrmModule } from '@nestjs/typeorm';
  import { AppController } from './app.controller';
  import { AppService } from './app.service';
  
  @Module({
    imports: [
      TypeOrmModule.forRoot({
        type: 'mssql',
        host: 'localhost',
        port: 1433,
        username: 'sa',
        password: '&lt;mypassword&gt;',
        database: 'test',
        entities: [__dirname + '/**/*.entity{.ts,.js}']
      })
    ],
    controllers: [AppController],
    providers: [AppService],
  })
  export class AppModule {}
  </code></pre>