I have noticed that there is a built in function in php called OPENSSL the link is
my question now do this function has the power to create an SSL certificate?
just like the commercial does?
or has someone of you already experience using this before, can you share your ideas for this? i'm really very curious.
Thank you in advance.
Yes, you will need to install a valid openssl.cnf
If you have PHP compiled to use this function then, yes, you can use it to create certificates for securing a website. However, the certificate won't be signed by a "trusted authority" so you will receive an error/warning when visiting the site using that certificate.
Also, if you just want a self signed certificate you can create it directly with OpenSSL rather than going through PHP.