Looks like roofing tar or body panel sealer
Depending on what it is, there's a few options to get stuff like that off.
1. On the hottest day, it may get gooey to the point you can wipe it off.
2. A solvent such as mineral spirits will usually soften it up.
3. Wait till the weather is below freezing or get dry ice and see if it comes off in chunks.
I think the first two options will be safer to separate it from the rubber seal, but will take more time.