Using A Certificate on My Gameserver

Hello everyone,
I’m working on making a server currently and I’m wondering how I can use a certificate (https) with it. It’s self-signed right now, but I’m not sure how to implement it into my server. Any suggestions?