Previous Topic: Create Certificate Signing Request

Next Topic: Obtain Certificate Signed by a CA

Create a Self-Signed Certificate

To create a certificate for testing or other internal purposes, use the following command:

openssl -req -new -x509 -key server.key -out cert_name.crt

To set an expiration time, use the -days flag. For example, when you set -days 365, the certificate expires in one year.

Place the output file in the following directory:

Agent-for-SharePoint_home\SSL\certs

Restart the Agent for SharePoint to enable the certificate.