# Solved: Unable to configure RSA server private key

## Problem

_Unable to configure RSA server private key_ log message when running Apache.

### Cause of the problem

This problem may occur if the private key and certificate do not match.

## Solution

Compare the modulus of the certificate against the modulus of the private key to
see if they match.

View the certificate modulus using the following command:

```bash
openssl x509 -noout -text -in certfile -modulus
```

Then, view the key using the following command:

```bash
openssl rsa -noout -text -in keyfile -modulus
```

### Verify the following

1. Verify that the certificate and private key file are saved in the file and
   that it has no trailing spaces.
2. The `modulus` and `public exponent` portions in the key and the certificate
   must match exactly. (Make sure you aren't using the default `server.key`
   file)
3. Check the `httpd.conf` file to make sure that the directives are pointing to
   the correct private key and certificate.

If they don't match, reissue the certificate.
