An endopeptidase which hydrolyzes the gamma-D-Glu-(L)meso-diaminopimelic acid bond of L-Ala-gamma-D-Glu-(L)meso-diaminopimelic acid and L-Ala-gamma-D-Glu-(L)meso-diaminopimelic acid(L)-D-Ala peptides. It is active on spore cortex peptidoglycan. Hydrolysis of gamma-D-glutamyl bonds to the L-terminus (position 7) of meso-diaminopimelic acid (meso-A2pm) in 7-(L-Ala-gamma-D-Glu)-meso-A2pm and 7-(L-Ala-gamma-D-Glu)-7-(D-Ala)-meso-A2pm. It is required that the D-terminal amino and carboxy groups of meso-A2pm are unsubstituted. Produced at stage IV of sporulation in forespore and spore integuments. LysM domains are thought to be involved in peptidoglycan binding. Belongs to the peptidase M14 family.