SQL2005镜像故障处理

SSB – Connection handshake failed

 

 

The following shows you some kinds of SSB exception when enabling Transport Security and Dialog Security in the cross-server Service Broker conversation.

1. Connection handshake failed. The certificate used by the peer is invalid due to the following reason: Certificate not found.

 

HINT: Usually this error is related to the EndPoint authentication, so the problem is from the certificates in MASTER DBs in two SQL SERVER instances. Please make sure that the right certificates are deployed and referenced. Look into master.sys.certificates in two respectively SQL SERVERS and validate the certificate cert_serial_number or thumbprint matches between two instances.

 

2. Connection handshake failed. The certificate used by the peer is invalid due to the following reason: The database principal has no mapping to a server principal..

 

HINT: You are using certificates for adjacent transport security. The certificate used by the peer belongs to a user in master DB who is not mapped to a login. This could happen for the following cases:

(1) You created a user in master without login.

(2) You created a user in master with login, but later dropped that login, thus orphaning that user.

The fix would be to create a SQL login, then create a user in master for this login and alter authorization of the peer’s certificate to be owned by this user. Next grant connection permission on the service broker endpoint to the newly created login.

 

You can refer to the following SQL SCRIPT for help.

-- Create a new login & user in the MASTER system database

Create Login Demo_Login

       With password=’YOURPASSWORD’

GO

 

Create User Demo_User

       For Login Demo_Login

GO

 

-- Give authorization permissions

Create Certificate YOURCERTIFICATENAME

       Authorization Demo_User

       From File=’THE PEERS CERTIFICATE FILE’

GO

 

-- Grant CONNECT permissions to the associated endpoint

Grant Connect on EndPoint::DB_ENDPOINT to Demo_Login

GO

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值