ssl - PJSIP TLS verify error (PJSIP_TLS_ECERTVERIF) -



ssl - PJSIP TLS verify error (PJSIP_TLS_ECERTVERIF) -

i have started develop tiny sip softphone application using pj project , gtk+. main goal create softphone supports both tls , srtp encryption (and mwi). have got stuck right @ part library registers business relationship because application has failed verify server when asked it. thought misunderstood while coding i'm newbie today i've tested library using pjsua application attached in source code , register sip business relationship unless i've started programme --tls-verify-server flag. create clear i've created asterisk own certificate authority, keys , certificate , i've installed ca machine. must note setup works commercial software, can verify certificate without problem.

the pjsua flags i've used:

--use-tls --tls-ca-file /etc/ssl/certs/ca-certificates.crt --id=sip:u-kuklinistvan1@kingdom.info.tm;transport=tls --registrar=sip:kingdom.info.tm;transport=tls --realm=kingdom.info.tm --username=u-kuklinistvan1 --password=xxxxxx --use-srtp=2 --mwi --tls-verify-server

it says(please follow link long version):

19:21:44.728 pjsua_app.c tls cert verification result of [94.21.11.229:5061] : server identity not match identities specified in certificate

...which not true openssl accepts certificate:

openssl s_client -cafile /etc/ssl/certs/ca-certificates.crt -connect kingdom.info.tm:5061

(click here rest)

verify homecoming code: 0 (ok)

extra information connect pjsua endpoint registrar hostname kingdom.info.tm.

is possible i've encountered bug or don't understand something? give thanks help!

... not match identities specified in certificate

... not true openssl accepts certificate: ... openssl s_client ...

the error messages refers checking identity against certificate, i.e. hostname provide against names in certificate (subject alternative names, mutual name). openssl s_client not identity checks checks valid trust chain.

looking @ certificate provided server contains contain mutual name kingdom.info.tm. error message looks expects ip address: tls cert verification result of [94.21.11.229:5061]: .... did specify sip url of peer ip address?

ssl certificate voip pjsip verify

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -