I am unable to use my certificate which i made using New-SelfSignedCertificate command and i tried replacing it with http.pfx in cert folder along with its configuration on elasticsearch.yml but it ain't working
More details required. We can't guess what you did, what outcome you expected, or why it didn't work.
I don't know what New-SelfSignedCertificate command
is. I assume you mean the powershell cmdlet.
Is there a reason you chose to use that rather than the tools the Elasticsearch provides?
What exactly did you put in your elasticsearch.yml
?
What's not working? Is Elasticsearch starting up OK? Is there an error message?
Yes, my friend I made cert from powershell using "New-SelfSignedCertificate -DnsName *.localserver.com -NotAfter (Get-Date).AddYears(10) -CertStoreLocation cert:\LocalMachine\My"
2nd :
yes it want to use my own ssl cert instaed of it because i am assigned this task i have to give it to my client
3rd :
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
xpack.security.http.ssl:
enabled: true
keystore.path: certs/http.p12
xpack.security.transport.ssl:
enabled: true
verification_mode: certificate
keystore.path: certs/transport.p12
truststore.path: certs/transport.p12
and also i have tried by exporting it as well