Installing a certificate on HA proxy fails with cat: ssl/proxy.crt: No such file or directory
Hi all,
I am trying to setup CLM cluster. At the stage of installing the certificate for haproxy I am getting the following error:
[root@mwcsrhel7 ~]# cd /etc/haproxy/ [root@mwcsrhel7 haproxy]# openssl req -new -key "ssl/proxy.key" -out "ssl/proxy.csr" Enter pass phrase for ssl/proxy.key: unable to load Private Key 140057214654368:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:596: 140057214654368:error:0906A065:PEM routines:PEM_do_header:bad decrypt:pem_lib.c:483: [root@mwcsrhel7 haproxy]# openssl req -new -key "ssl/proxy.key" -out "ssl/proxy.csr" Enter pass phrase for ssl/proxy.key: You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank.
Country Name (2 letter code) [XX]:PL State or Province Name (full name) []:IBM Locality Name (eg, city) [Default City]: Organization Name (eg, company) [Default Company Ltd]:IBM Organizational Unit Name (eg, section) []: Common Name (eg, your name or your server's hostname) []: Email Address []: Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []:Rat1onal An optional company name []: [root@mwcsrhel7 haproxy]# cat ssl/proxy.crt ssl/proxy.csr > ssl/proxy.pem cat: ssl/proxy.crt: No such file or directory [root@mwcsrhel7 haproxy]# ls ssl proxy.csr proxy.key proxy.pem
What did I do wrong?