Self Signed Cetificate error - very frustrating!

gregaryb

New Member
Joined
Nov 5, 2023
Messages
24
Reaction score
4
Credits
301
I have created this batch file to create a self signed certificate.

***************************************************************************************************************
#!/bin/bash
echo "=================================================================="
sudo openssl req -newkey rsa:4096 -x509 -sha512 -days 3650 -nodes -out fat_certificate.pem -keyout fat_privatekey.pem <<< "AU
Victoria
Melbourne
Find a Tradie
Web Admin
find-a-tradie.com.au
[email protected]"
echo "=================================================================="
sudo openssl x509 -outform der -in fat_certificate.pem -out fat_certificate.crt
echo "=================================================================="
sudo mv fat_certificate.pem /usr/local/share/ca-certificates
sudo mv fat_certificate.crt /usr/local/share/ca-certificates
sudo mv fat_privatekey.pem /usr/local/share/ca-certificates
echo "=================================================================="
sudo update-ca-certificates
echo "=================================================================="
sudo openssl verify -verbose -CAfile /etc/ssl/certs/ca-certificates.crt /usr/local/share/ca-certificates/fat_certificate.crt
***************************************************************************************************************

And here is the output from running that batch file.

***************************************************************************************************************
1704343970444.png


***************************************************************************************************************
How do I solve this certificate error?
I have been experimenting with all this manually by entering the individual commans on the command line, so it is not the first attempt to install a certificate related to find-a-tradie.com.au
Do I need to explicitly remove the previous certificates I have installed?
If so how do I do that?
No one on the web seems to be able to give a categorical answer to these questions!
The answers vary from author to author.
 

Members online


Top