How to use openssl to generate a self-signed x509 certificate?

Solution Verified - Updated -

Issue

  • I know OpenSSL can be used to make SSL certificates for use with Apache httpd ... how to do it?

  • I previously used the genkey command to generate self-signed certificates but it did not give me enough options and I need to specify a non-md5 digest. How can I do this with openssl?

Environment

  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content