TLS/SSL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All,
?
Has anyone successfully configured and implemented pjsips TLS/SSL support? I am new to this technology and have been trying to figure this out.
?
1. I have followed directions fron the following links:
	* http://trac.pjsip.org/repos/wiki/TLS#
	* http://trac.pjsip.org/repos/wiki/Getting-Started/Installing-OpenSSL-Windows#
?
2. So I currently have this defined: ?#define PJ_HAS_SSL_SOCK 1

3. I have used the command line of OpenSSL to generate a private key.
	* openssl genrsa? -out privkey.pem 2048
4. I have used the command line OpenSSL also to generate a self-signed certificate
	* openssl req -new -x509?-key privkey.pem -out 
cacert.pem -days 365
5. I set up the following variables in the tls structure?	* udp_cfg.tls_setting.ca_list_file = pj_str(CERTIFICATE_FILE); // location of cacert.pem
	* udp_cfg.tls_setting.cert_file = pj_str(CERTIFICATE_FILE); // location of cacert.pem
	* udp_cfg.tls_setting.privkey_file = pj_str(PRIVKEY_FILE); // location of privkey.pem
	* udp_cfg.tls_setting.verify_client = PJ_FALSE;
	* udp_cfg.tls_setting.verify_server = PJ_FALSE;
6. I changed the pjsip_transport_type_e	* status = pjsua_transport_create(PJSIP_TRANSPORT_TLS, &udp_cfg, &transport_id);
?
The above function seems to return back with 0 (PJ_SUCCESS). If I keep all the code the constant?and simply? vary the pjsip_transport_type_e variable with?PJSIP_TRANSPORT_TLS and?PJSIP_TRANSPORT_UDP; UDP will work and TLS will not.
?
Any clues, tips, suggestions, or anything for that matter that will help out would be appreciated....
?
Thanks in advance!
?
Hemsley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130329/826e4512/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux