openssl pkey -pubout -in privatekey.pem | openssl sha256
openssl x509 -pubkey -in 0001_chain.pem -noout | openssl sha256
openssl x509 -pubkey -in 0000_cert.pem -noout | openssl sha256
openssl pkey -pubout -in privatekey.pem | openssl sha256
openssl x509 -pubkey -in 0001_chain.pem -noout | openssl sha256
openssl x509 -pubkey -in 0000_cert.pem -noout | openssl sha256
You can't use chain for that.
You need the right cert.pem
file.
[that matches that privkey.pem
]
[emerg] cannot load certificate "/etc/ssld/dvslearn.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/ssld/dvslearn.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed
i am getting this error now
What happened to that file?
it is there in folder
Then perhaps there is a permissions problem.
OR
There is a TYPO in the file name used.
Please show:
ls -l /etc/ssld/*.crt
sudo ln -s /etc/nginx/sites-available/dsrlearn.com.conf /etc/nginx/sites-enabled/
i got this
nginx: [emerg] open() "/etc/nginx/sites-enabled/dsrlearn.com.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:66
nginx: configuration file /etc/nginx/nginx.conf test failed
what is the problem
Please show:
ls -l /etc/ssld/*.crt
ls -l /etc/nginx/sites-enabled/
-rw-r--r-- 1 root root 1874 Feb 17 08:39 /etc/ssld/dsrlearn.crt
lrwxrwxrwx 1 root root 44 Feb 17 09:11 dsrlearn.com.conf -> /etc/nginx/sites-available/dsrlearn.com.conf
I see a name mismatch.
Please show:
ls -l /etc/nginx/sites-available/
got it
-rw-r--r-- 1 root root 3892 Feb 17 09:16 dsrlearn.conf
nginx -t getting this
nginx: [emerg] open() "/etc/nginx/sites-enabled/dsrlearn.com.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:66
nginx: configuration file /etc/nginx/nginx.conf test failed
still getting the error
emerg] cannot load certificate "/etc/ssld/dvslearn.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/ssld/dvslearn.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
Your nginx configuration means dvslearn.crt
but your /etc/ssld
directory only contains dsrlearn.crt
, like @rg305 mentioned yesterday.
it's not that. i changed the name and still getting error. i think it's either problem with openssl or cert file
Your server is sending out a valid certificate and chain. See this SSL Checker
Are you still getting the error from nginx? If so, please show the results of this command:
sudo nginx -T
(upper case T)
Please put 3 backticks before and after the output like this:
```
output of command
```
yes i think it's a problem with openssl or cert files. so uninstalled nginx and i compiled nginx with openssl. i created ssl again. it works now.
i want to delete this post
this post is appearing before my domain in google search results.