You can generate your own certificates, but those won’t be accepted as a valid certificate by browsers.