You're after a 'developer certificate', not a Safari Developer certificate/Safari Extension Certificate
From the SEGD - Using Extension Builder:
https://developer.apple.com/library/content/documentation/Tools/Conceptual/SafariExtensionGuide/UsingExtensionBuilder/UsingExtensionBuilder.html
"Before you can build and install an extension, you need to install a developer certificate. For more information, see Developer Certificates."
-=-
>How can I generate
See: Your Signing Certificates in Depth
Question - are you working with a Safari extension or Safari app extension? Because, as the docs note 'you don’t use Safari Extension Builder to create an app extension. Instead, you have an Xcode project.'
How you deal with that certificate might vary, depending on. I'm assuming you're working w/Xcode.