Problem Description
Aerospike server is failing to start due to this error in the logs:
Mar 02 2024 23:37:16 GMT: WARNING (tls): (tls_ee.c:1245) failed to load key file /etc/aerospike/ssl/tls1/key.pem: 151507833004263:error:0909006C:PEM routines:get_name:no start line:crypto/pem/pem_lib.c:745:Expecting: CERTIFICATE
151507833004263:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:crypto/evp/evp_enc.c:643:
151507833004263:error:0906A065:PEM routines:PEM_do_header:bad decrypt:crypto/pem/pem_lib.c:461:
Mar 02 2024 23:37:16 GMT: CRITICAL (config): (cfg.c:4136) failed to set up service tls
Mar 02 2024 23:37:16 GMT: WARNING (as): (signal.c:165) SIGINT received, shutting down Aerospike Enterprise Edition build 6.2.0.24 os el8
Mar 02 2024 23:37:16 GMT: WARNING (as): (signal.c:169) startup was not complete, exiting immediately
Explanation
Aerospike is failing to start due to a TLS certificate error. Aerospike was unable to load this key file: /etc/aerospike/ssl/tls1/key.pemSolution
Consider double checking the following:
- Confirm if the password getting passed in is correct
- Check that the path of the key file is configured correctly within aerospike.conf
- Confirm if the key file is the correct file