Create a root certificate authority
Generate a root certificate authority that signs a certificate.
This task is optional because a root certificate authority is only needed if you are creating self-signed certificates for testing purposes.
To secure your web server and applications to use the SSL/TLS protocol, you must send a Certificate Signing Request to one of the trusted Certificate Authority companies on the Internet that will provide you with a certificate you can trust.
For details about creating a Certificate Signing Request, go to Create a certificate. For more information about certificate authorities, go to Certificate authories.
The openssl tool is used to create a root certificate authority.
Create a self-signed certificate
You can use MyRootCA.crt to encrypt data as a self-signed certificate, but users will be shown a warning that says the certificate is not trusted. If you want to have it trusted, you must create your own certificate signed by this certificate authority, and install it as a trusted certificate in the browser or in the keystore/keychain of the machine. Creating a self-signed certificate is detailed in Create a certificate.