Yes, a self-signed certificate can be generated by creating a Certificate Signing Request (CSR) and private keys.