Setup SSL for nginx

hi team,
Please let me know the exact/right procedure to setup the SSL for nginx. I did it the way I knew , but interested in knowing if there is any other methods.

what the way you use

https://www.server-world.info/en/note?os=CentOS_7&p=nginx&f=4