mlittle / avaya-moagent-client

Avaya Moagent Client is a fully-managed replacement for the COM-component provided as part of the Avaya SDK.
BSD 2-Clause "Simplified" License
4 stars 3 forks source link

SSL authenticate as client error #10

Open Essent1e opened 7 years ago

Essent1e commented 7 years ago

Hello! When i use the code without ssl, it works fine. But when i set ssl = true, i get an error on SslStream.AuthenticateAsClient

An unhandled exception of type 'OpenSSL.Core.OpenSslException' occurred in ManagedOpenSsl.dll Additional information: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

I imported the both certificates into local computer - the .cer into Trusted Root Certification Authorities and .p12 into Personal. The dev computer is in my job local net, the IP in AvayaDialer is set to my machine local net IP, the port 22700 (i didn't change). Please, tell me what am doing wrong?

mlittle commented 7 years ago

What version of the dialer are you connecting to? More recent versions for dialer use a new set of certificates and updated versions of SSL I haven't updated the library for. Dialer I have access to is newer and I can probably get those code updates made...

Essent1e commented 7 years ago

If you mean the assemblies versions in the solution - MoagentClient is 1.0.1 and the other two - 1.0.0

mlittle commented 7 years ago

Actually referring to what dialer server version. 4.0.x, 5.0, 5.1, 5.1.1, etc. If you are working in Avaya lab it is probably 5.1.1 if I had to guess.

Additionally is it hard dialer or CTI dialer? On Tue, May 23, 2017 at 1:11 PM Essent1e notifications@github.com wrote:

If you mean the assemblies versions in the solution - MoagentClient is 1.0.1 and the other two - 1.0.0

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/mlittle/avaya-moagent-client/issues/10#issuecomment-303517930, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKbj-jKXERBPDn8Y6nGJqp2Y7W8Fpg-ks5r8z2MgaJpZM4NjsSP .

Essent1e commented 7 years ago

Ah) I try to connect only to the emulator

Essent1e commented 7 years ago

Guys, could you check that in your infrastructure the connection to the emulator is working? At first running your code I got the exception in line BIO.File(@".\agentClientCert.p12", "r"); - so I added all the files from dependencies folder to the output folder of AvayaMoagent project and it worked but after that I always get exception (that i described earlier here) when trying to connect using ssl to the emulator. I would appreciate any help from you