Added resource layers and validation for certifcate mapping feature

Change-Id: I59b567ab1860410b9480c6d2c715e752aa6f0033