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.
I am not going to be rude on here but when the root certificate is expired we can just create a fake developer cert by law because even using the official certificate service would require a repair of the planned obsolescence. Contact me if you would like a like to some tutorials. Apple, you really should allow us to sign a certificate for old computers for free since it is of no material extra cost to do and because if you are caught in federal court using certs to blacklist it could be bad.