0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

プリザンターを1.4系 から 1.5 系に更新したらSQL Serverでコケた時の対処法

0
Posted at

はじめに

Pleasanter を 1.4.16.1 から 1.5.2.0 にアップグレードした際、CodeDefiner 実行時に以下のエラーが発生しました。

<ERROR> Starter.TryOpenConnections: [-2146893019] サーバーとの接続を正常に確立しましたが、ログイン中にエラーが発生しました。 (provider: SSL プロバイダー, error: 0 - 信頼されていない機関によって証明書チェーンが発行されました。)

環境

  • Windows 11 Pro
  • SQL Server 2022 Express
  • プリザンター 1.5.2.0

原因

原因は、SQL Server との TLS 接続時にサーバー証明書の検証が行われ、証明書チェーンを信頼できず失敗したことです。

Pleasanter 公式でも、1.5 以降で SQL Server を使う場合は TrustServerCertificate=true; の追加が案内されています。

対処方法

今回は Rds.json の接続文字列に TrustServerCertificate=true; を追加することで解消しました。

注意点
TrustServerCertificate=true; は手早く解消できる方法ですが、本番環境では SQL Server 側に正しい証明書を設定するのが本筋です。

この設定は、ローカル環境や検証環境での回避策としては有効ですが、恒久対応としては証明書を適切に導入するのが望ましいです。

参考リンク

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?