Get the default configuration file make-dummy-cert for OpenSSL, optimized for CentOS Linux 6. This example configuration ensures optimal compatibility and performance for OpenSSL, making it easy to set up and adjust to meet your needs.
Find and download the configuration file here: /etc/pki/tls/certs/make-dummy-cert.
For more configurations and setup guides, visit our related files section to further customize your system.
#!/bin/sh
umask 077
answers() {
echo --
echo SomeState
echo SomeCity
echo SomeOrganization
echo SomeOrganizationalUnit
echo localhost.localdomain
echo root@localhost.localdomain
}
if [ $# -eq 0 ] ; then
echo $"Usage: `basename $0` filename [...]"
exit 0
fi
for target in $@ ; do
PEM1=`/bin/mktemp /tmp/openssl.XXXXXX`
PEM2=`/bin/mktemp /tmp/openssl.XXXXXX`
trap "rm -f $PEM1 $PEM2" SIGINT
answers | /usr/bin/openssl req -newkey rsa:2048 -keyout $PEM1 -nodes -x509 -days 365 -out $PEM2 2> /dev/null
cat $PEM1 > ${target}
echo "" >> ${target}
cat $PEM2 >> ${target}
rm -f $PEM1 $PEM2
done
Download the raw file with wget or curl
wget -O make-dummy-cert.example https://exampleconfig.com/static/raw/openssl/centos6/etc/pki/tls/certs/make-dummy-cert
curl https://exampleconfig.com/static/raw/openssl/centos6/etc/pki/tls/certs/make-dummy-cert > make-dummy-cert.example
Other config files you might find useful