Is there a correct way to generate a self-signed certificate for an embedded Linux device
Hey guys Is there a correct way to generate a self-signed certificate for an embedded Linux device that will be compatible with Google Chrome? I have followed the steps provided, but I am encountering errors such as This is probably not the site you are looking for and The site's security certificate is not trusted
openssl req -new > cert.csr
openssl rsa -in privkey.pem -out key.pem
openssl x509 -in cert.csr -out cert.pem -req -signkey key.pem -days 1001
cat key.pem>>cert.pem
Am I missing something? Is this the correct way to build a self-signed certificate?
@Middleware & OS
3 Replies
Hii @Boss lady You’re almost there! Try this:
openssl req -new -newkey rsa:2048 -nodes -keyout key.pem -out cert.csr
openssl x509 -req -days 1001 -in cert.csr -signkey key.pem -out cert.pem
cat key.pem cert.pem > fullchain.pem
Then add the certificate to Chrome’s trusted certificates. This might involve importing it into your browser or OS’s certificate store.
I hope this helps you