I am not able to handle certification's error by using the scenario you have described in Video module 14 nor as well suing Desired capabilities and ProfilelIni class .
Issue is :
Every time new Firefox instance is opening instead going for default one as passed on constructor for ProfileiNi class . As well Webdriver is getting stuck .