Usage examples tls-interaction property for rtspsrc and souphttpsrc

enthusiastic geek enthusiasticgeek at gmail.com
Sat Oct 7 13:01:06 UTC 2017


Thanks @Mandar Joshi.

Yes that compiled.
I got verification return value as 0 in tls_accept_certificate function. But
still couldn't get it to work and see the video.

//=========================================

*Do you also set the following on client side?*

  //validate all 
  *g_object_set (G_OBJECT (source), "tls-validation-flags",
G_TLS_CERTIFICATE_VALIDATE_ALL, NULL);* 

  //not sure if tls-database is required to be set if ca_cert is already
specified. 
  //not sure if cacert and database will be different or the same.

  *GTlsDatabase* database = g_tls_file_database_new
("/home/enthusiasticgeek/gstreamer/cert/toyCA.pem", &error);*
  *ca_cert =
g_tls_certificate_new_from_file("/home/enthusiasticgeek/gstreamer/cert/toyCA.pem",&error);*
  *g_object_set (G_OBJECT (source), "tls-database", database, NULL);*

//=========================================

*Do you also set the following on server side?*

  //not sure if tls-database is required to be set if ca_cert is already
specified. 
  //not sure if cacert and database will be different or the same.

 * GTlsDatabase* database = g_tls_file_database_new
("/home/enthusiasticgeek/gstreamer/cert/toyCA.pem", &error);* 
 * gst_rtsp_auth_set_tls_database (auth, database);* 
  *ca_cert =
g_tls_certificate_new_from_file("/home/enthusiasticgeek/gstreamer/cert/toyCA.pem",&error);*

 //Is this required for strict check?
*gst_rtsp_auth_set_tls_authentication_mode(auth,
G_TLS_AUTHENTICATION_REQUIRED); *

//=========================================




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list