top of page
  • Writer's pictureceumiclopifesrumsp

SSL library error check private key key values mismatch: A comprehensive tutorial



Errors that keep Apache from starting can be very frustrating. This usually happens when Apache is reading the configuration files and finds something it doesn't know how to handle.The first step when you experience this issue is to check your log file for an error that might point to the problem.




ssl library error check private key key values mismatch




If you see one of these errors it usually means that the private key that is being loaded in the VirtualHost section of your .conf file doesn't match the SSL Certificate being loaded in the same section.


OpenSSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch Error: "Unable to configure RSA server private key"Eror: "mod_ssl: Init: (www.domain.com:443) Unable to configure RSA server private key (OpenSSL library error follows)"Error: "OpenSSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch"


Verify the following:Verify that the certificate and private key file is saved in Notepad and that it has no trailing spaces.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.You should also check the httpd.conf file to make sure that the directives are pointing to the correct private key and certificate.


[Mon Month 21 10:56:27 YYYY] [warn] RSA server certificate CommonName (CN) `hostname.domainname' does NOT match server name!?[Mon Month 21 10:56:27 YYYY] [error] Unable to configure RSA server private key[Mon Month 21 10:56:27 YYYY] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch


01070313:3: Error reading key PEM file /config/filestore/files_d/Common_d/certificate_key_d/:Common:star.mydomain.com.key_12345_1 for profile /Common/myapp.app/myapp_as_client-ssl: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch


Check the error_log file. If you did not set your virtual host to write to an error log, you may want to reconsider. The example SSL virtual host writes to an error log file. Most likely you will have a few warnings and an error at the end of the log that basically say that the private key does not match the certificate.


If you get the error messages above, chances are the key and certificate do not match. Make sure you aren't using the default server.key file. You should also check the httpd.conf file to make sure that the directives are pointing to the correct private key and certificate.


You can check to make sure that you your private key and certificate are in the correct format and match each other. To do this, give the commands below to decrypt the private key in one terminal window and decrypt the certificate in the other. What you will be comparing are the Modulus and the Exponent of each key. If the modulus and exponent from the key matches the set from the certificate, you have just confirmed that your certificate and key are correctly paired.


[error] mod_ssl: Init: (www.symantec.com:443) Unable to configure RSA server private key (OpenSSL library error follows)SSL Library Error: 185073780 error:0B080074:x509 certificate routines: X509_check_private_key: key values mismatchOpenSSL:error:0B080074:x509 certificate routines:x509_check_private_key:key values mismatch


The sni_callback function must return None to allow theTLS negotiation to continue. If a TLS failure is required, a constantALERT_DESCRIPTION_* can bereturned. Other return values will result in a TLS fatal error withALERT_DESCRIPTION_INTERNAL_ERROR.


On Unix systems, the permissions on the private key file must disallow any access to world or group; achieve this by a command such as chmod 0600 /.postgresql/postgresql.key. Alternatively, the file can be owned by root and have group read access (that is, 0640 permissions). That setup is intended for installations where certificate and key files are managed by the operating system. The user of libpq should then be made a member of the group that has access to those certificate and key files. (On Microsoft Windows, there is no file permissions check, since the %APPDATA%\postgresql directory is presumed secure.)


--------18/05/26 08:31:35 Start process--------WARNING: StartServers has no effect on Win32[Sat May 26 08:31:35 2018] [notice] User directive has no affect on Win32 running...8/05/26 08:40:43 Stop process--------WARNING: StartServers has no effect on Win32[Sat May 26 08:40:43 2018] [notice] User directive has no affect on Win32--------18/05/23 05:17:27 Start process--------WARNING: StartServers has no effect on Win32[Wed May 23 05:17:27 2018] [notice] User directive has no affect on Win32[Wed May 23 05:17:27 2018] [warn] pid file f:/oracle/inst/apps/_webserver/pids/10.1.3/apache/httpd.pid overwritten -- Unclean shutdown of previous Apache run?[Wed May 23 05:17:28 2018] [error] mod_ssl: Init: () Unable to configure RSA server private key (OpenSSL library error follows)[Wed May 23 05:17:28 2018] [error] OpenSSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch


To verify the consistency of the RSA private key and to view its modulus:openssl rsa -modulus -noout -in myserver.key openssl md5openssl rsa -check -noout -in myserver.key openssl md5RSA Key is okIf it doesn't say 'RSA key ok', it isn't OK!"


If the first commands shows any errors, or if the modulus of the public key in the certificate and the modulus of the private key do not exactly match, then you're not using the correct private key. You can either create a brand new key and CSR and contact support, or you can do a search for any other private keys on the system and see if they match.


Note: Be sure to use the file path file://key.pem for your key and file://certificate.pem for your certificate. If you don't include the file path, then you might receive the following error messages: "The private key is not supported" or "The certificate is not valid."


You can test a CSR by using the decoder in the Managed SSL Tab of your GlobalSign accounts. Should you not have that available, you can safely use online resources to check your CSR, as long as you do not share your private key you do not have to be concerned for their security. If there are any extra spaces or too many or too few dashes at the beginning/end of the certificate request, it will invalidate the CSR.-----BEGIN CERTIFICATE REQUEST----------END CERTIFICATE REQUEST-----


This error message generally appears when your order has timed out. You should start the ordering process from scratch and to let us know if the issue persists. If it does, we need to run further checks on your account.


[Tue Jun 23 02:05:52 2015] [error] Unable to configure RSA server private key[Tue Jun 23 02:05:52 2015] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch


unable, configure, rsa, server, ssl, certificate, routines, _check_private_key, mismatch, tue, jun, accurate, localhost, crt, default, locations, apache, centos, directory, pki, infrastructure, verify, stated, paths,


If the server certificate and the bundle have been concatenated in the wrong order, we also get this key values mismatch error. In this case, we need to put the server certificate on top of the certificate file.


MDN receipts are signed using a digital certificate to ensure that they come from the expected party. This error indicates that the certificate configured in Arc could not be used to verify this digital signature. This typically indicates a certificate mismatch, where the appropriate certificate(s) are not configured on one side of the connection.


To resolve certificate mismatch errors, confirm that each partner has exchanged public certificates and that these certificates are correctly configured on each end. Within Arc, the public certificate for a trading partner should be configured in the AS2 Connector for that partner under the Encryption Certificate field.


This error is included as part of the MDN response, indicating that the trading partner could not verify the signature in the AS2 request. This suggests a general certificate mismatch between the trading parties.


When an AS2 message is received by Arc, the application attempts to route the message to a specific AS2 Connector based on the configured AS2 identifiers. This error indicates that no connector could be found where the AS2 identifiers for sender and receiver match the values present in the AS2 message.


Since this error does not provide debugging information, it is necessary to contact the remote trading partner to check for server-side logs providing context to the failure. These logs should provide information to find the root cause of the issue.


Mon Jun 22 17:49:05 2020 OpenVPN 2.4.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 20 2019Mon Jun 22 17:49:05 2020 library versions: OpenSSL 1.1.1c 28 May 2019, LZO 2.10Mon Jun 22 17:49:05 2020 OpenSSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatchMon Jun 22 17:49:05 2020 Cannot load private key file [[INLINE]]Mon Jun 22 17:49:05 2020 Error: private key password verification failedMon Jun 22 17:49:05 2020 Exiting due to fatal error 2ff7e9595c


1 view0 comments

Recent Posts

See All

Comentarios


bottom of page