piotr-rojek / devopsifyme-sbemulator

MIT License
63 stars 12 forks source link

RemoteCertificateNameMismatch error on macOS #29

Open crow-ua opened 6 months ago

crow-ua commented 6 months ago

I've added test certificate to trust root for both login and system keychains on macOS (Ventura):

security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/login.keychain cacert.cer
security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/System.keychain cacert.cer

They are present in Keychain Access, all trust settings set to Always Trust. Test Azure Function fails at runtime:

Message processing error (Action=Receive, EntityPath=sbemulatortest, Endpoint=localhost)
[2024-01-08T12:24:51.244Z] System.Private.CoreLib: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch.

I've created sbemulatortest queue manually in RabbitMQ to be on the safe side, did not help.

martinlinkhorst commented 5 months ago

I'm experincing the same issue on macOS (Sonoma 14.1) running a .Net 8 console application.

scooney-smartwyre commented 2 months ago

Hey @crow-ua @martinlinkhorst Did you have any luck getting this to work or find an alternative? Thanks