[solved] Internal SSL error

#1

Hi,
I’m trying to configure asterisk for webrtc and start using multi stream (SFU). Right now I according to guide at this site https://wiki.asterisk.org/wiki/display/AST/WebRTC+tutorial+using+SIPML5

I created certificates with command ./ast_tls_cert -C [my_real_IP_lan _address] -O "My Super Company" - d /etc/asterisk/keys then checked is created in destination directory. After that i configured http.conf, restart core of Asterisk and try get http://my_real_lan_ip_address:8089. But i got nothing and in CLI i got this

[Jun 29 09:53:48] ERROR[20788]: iostream.c:609 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:48] ERROR[20788]: iostream.c:514 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:48] ERROR[20787]: iostream.c:609 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:48] ERROR[20787]: iostream.c:514 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:48] ERROR[20789]: iostream.c:609 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:48] ERROR[20789]: iostream.c:514 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:49] ERROR[20792]: iostream.c:609 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:49] ERROR[20792]: iostream.c:514 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:49] ERROR[20791]: iostream.c:609 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:49] ERROR[20791]: iostream.c:514 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:49] ERROR[20793]: iostream.c:609 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:49] ERROR[20793]: iostream.c:514 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:54] ERROR[20794]: iostream.c:609 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:54] ERROR[20794]: iostream.c:514 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:54] ERROR[20795]: iostream.c:609 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:54] ERROR[20795]: iostream.c:514 ast_iostream_close: SSL_shutdown() failed: error:00000001:lib(0):func(0):reason(1), Internal SSL error
[Jun 29 09:53:54] ERROR[20796]: iostream.c:609 ast_iostream_start_tls: Problem setting up ssl connection: error:00000001:lib(0):func(0):reason(1), Internal SSL error
0 Likes

#2

You would need to use https://my_real_lan_ip_address:8089 - not “http”.

0 Likes

#3

L_O_L

Yeah, now its not return any problems. Is cyber mega phone i should put on asterisk server or it could be started from my hard disk drive ?

0 Likes

#4

It is best to serve it from an HTTPS server for testing purposes.

0 Likes

#5

You saying ‘https server’ you mean something like nginx/apache server?

0 Likes

#6

Or the Asterisk HTTPS server. It’s up to you.

0 Likes

#7

OK. I choose Asterisk HTTPS server for testing. Its up and running but I dont see even my local camera. There is only this error

sdp-interop-sl-1.4.0.js:1613 Uncaught TypeError: Cannot read property 'some' of undefined
    at module.exports (sdp-interop-sl-1.4.0.js:1613)
    at Object.toPlanB (sdp-interop-sl-1.4.0.js:690)
    at RTCSession.<anonymous> (cyber_mega_phone.js:98)
    at RTCSession.EventEmitter.emit (jssip-3.0.13.js:21730)
    at RTCSession.receiveInviteResponse (jssip-3.0.13.js:15906)
    at RTCSession.receiveResponse (jssip-3.0.13.js:15698)
    at RequestSender.receiveResponse (jssip-3.0.13.js:17663)
    at InviteClientTransaction.receiveResponse (jssip-3.0.13.js:18701)
    at UA.onTransportData (jssip-3.0.13.js:20595)
    at Transport.onData (jssip-3.0.13.js:19317)
0 Likes

#8

I don’t have experience in that area so I can’t really help. It’s possible the browsers changed something or did something which has caused a problem. With WebRTC if you are expecting to use it that’s something you have to take into account when deploying it, you have to know the technology and react to any changes that occur.

Have you followed the guide exactly for it? Including configuration and other things?

0 Likes

#9

Ok, I re-read everything again and made some changes acording to tutorial and it is working. I’m wondering is any windows/client which will collaborate with persons who are use web-based video-conference ?

0 Likes

#10

I am not aware of anything.

0 Likes

#11

ok :slight_smile: thank you for your help. right now i know everything what i need.

0 Likes