¿Tienes un error SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch?

Estoy en un VPS que tiene un Apache2 con virtual hosts y un certificado digital autofirmado. A partir de la configuración de un host virtual y la instalación de un certificado SSL autofirmado, durante un buen rato no he podido iniciar correctamente Apache debido al siguiente error:

Dudas y preguntas

[Sun Aug 19 15:15:59 2012] [error] Unable to configure RSA server private key
[Sun Aug 19 15:15:59 2012] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch

Claro, mi archivo mitienda-prod.key estaba encriptado:

root@vds-111111:/etc/apache2/ssl# cat mitienda-prod.key
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,7C602DC800CF1E2B

IAIOmxfwUa8d6rQebNjIWi9tF1w1mZvhvMcAKDOVK/V28u318HmNgLw64PY8u2Oj
uKcfEHV/45rjP+0/J4Q4HIcNyjzxHFifgbXiWpYf+7lbLtzFkHlB1ExydXanez3S
U8kmqO+b6/3Y8Aq3NFScN+l/+4kNZtMJwCXKjbIEnqNjZm3wU3fgEmx5RiWalebt
vX1hR3+32IqF0fYHJ4fclZrpoxBotQTO7LUFeUqPzeQCpt7URac5tj3cmtNSUyP4
87OoRvJkrGTHeLE+XQ4zPKEMch2eGwX3yR/sHPM8SSkxjRFysn8gRIZxnRkKFUZX
25ommBmi+E1o4yu+2twIMJ2hFybTULdgjsUnGTb2t/lZG+3g23CquoLY8OVawVIG
7RJz6h/maMtw5TB9SVIKxhWJtG9F6TQ/b6Of8jYCdbYDS5dWN2LfDm/+CnyeDE89
IIAm6eTKQO7w5Fe7TBboUIoRYWgh1xw7KHBi+Am7d8aOUooZMpLq7vxeGjbCKQFs
2NtlPLevMnh8HtB1rVs9cKLWZSdE+mIBiik63lOvbAupGwmkipjrnSmiiOvmoR62
V0RXro2hX7TpMmMB3NPxV/jSMoq0qjJ4TnAygQYEkFGnrb7mY4uuw8L8L8zBF43r
93R76VCSVmKdUXN/F7So2oVIdgr9T5T09fRQmJvsGVNXnYcxLd7+vYNHh6SZxrsb
XQlfrMG7mCTnhpNLkhXesM3TQo+dqfv8/UneuzpA3eKMnQgJ4cGn/RhSQBwLx7L9
SBz0EzaQorSXtnpVDMu4iilMVqv/obtf7Rd7KLeO7ZBPnpyhMC/66YWdm0VAJLkf
o7VKrHFdaN96te2OUNEcogtJJ1MrU1ocurqm/4udB4a6drKDBGjvVHcI2Nw5sQw+
Egyn0SZrb3/s+VK1y9WueCdePXGtuw3YODCnSb1IDj3m7pWj2iK/DT4/cNJyG+nH
VoaXwAX39ziJRI+MbF31CyaveO/HgQRnW/xK76/nW24k8dk57O4rU0vUeWa20Jus
dDqXqWxp+tqyj9m/unfcikYE0bVTMyN/zlV/trMxNJXZkTaH7STr5JUIs+4cFqgB
cYIGky6pOFo6uhTF11oxV+hejD4WVDmWdCZ8b5HbHvtHtzPw+wDL5183heYJwDNC
H1RNGJI4JQbMiWBfEg23tsQT7wPg+bsodVea02PSJS1xOIkL6/5R0rpK5u+nBkuA
waIuSuHN1msSegWzvx07lzKO4xvxzjIO8RYzO6alUZY7J+nqBIQoVoxeS/++1zoC
mUUDrHyVAMEMD7tphXkZ5JQOKj0DLSmRT903cqf7tsSl6//4OsB82LEDbdvFNsDb
X5rpWqNa9tK3bgdHLQHnLp/WItiQ0TodpOmLEUTf8hWy0jic46h3FclF0pcw7dwZ
hb0NMzbpYUwJkQEAdqe1tahqH/1abGQjho2rFMvxWmrCnZbi21jEUKmcJTQcIojz
g+BdNQDq6JySC7p2JCvWQbSuTE+Q4/nvffckl72ZOGZmdyds6TI+n1wQSzueTgWJ
nAS0lbFxihrJo410cFnZMUEJTurvQbAAXW2HKSCv1F1CRbgpGmshdI+Pm3N2kiSb
-----END RSA PRIVATE KEY-----

Finalmente pues soluciono este problema desencriptándolo:

root@vds-111111:/etc/apache2/ssl# cat mitienda-prod.key
-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAx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l0YowgaovUE2C
6PjUbhY1M30e1dXk+PSTWty9B5CyuweQDqRFUodZbSSM5aej63v0rFbL46ud9vGA
BWxE8dEeJCBsCcI7KvdTLLFXG16D5gcn99jZGQi5HICfGvrJ5Bx1FOc8s5Pa+QDo
kv/HoGimKgaBGFdvVCKJXkgVAoGBAKnrOccaqcsC2zjznC+LLYIeTDTS4AB2XET3
ySghS/JvjsFJhKJ05tvytqSnQn6V76FeieFJdnOXDsk0MMvjdwte7bkY0H+bhswo
xBCf965qNqPgGKBEX88qeIrUKzdg1nUCKb0JStKZxe/yPKsuzee3lUCURmGN5nyN
Th1D3CRHAoGAdXM9ZGTgTo5Yoag3rkou0wQIyxy1lNbBGchtkwf44XpKnnKMv5zb
7cizQbvPXoJDNDIS6Uy1llwDxQ62L/MQTlph5O96xAWJJbQOvBvMD43q17rPM81y
xlogtcklr1AcHGELpwv92EpbvzqBBmI3W/8pwu+qqAssy0EmedY9iN4=
-----END RSA PRIVATE KEY-----

Este es el comando que he tendio que ejecutar para desencriptar la clave:

openssl rsa -in mitienda-prod.key -out mitienda-prod.key