/etc/pki/tls/certs/make-dummy-cert - CentOS Linux 6

This is the default example configuration of make-dummy-cert provided by OpenSSL. This config file was generated by OpenSSL running on CentOS 6.

It is located under: /etc/pki/tls/certs/make-dummy-cert

    #!/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

    
  

Config Details

Location
/etc/pki/tls/certs/make-dummy-cert
Operating system
CentOS Linux 6
Length
28 lines
MD5 checksum
ba3c2aa85c566e6de3ed0badd23bea49

Usage

Download the raw file with wget or curl

Wget

wget -O make-dummy-cert.example http://exampleconfig.com/static/raw/openssl/centos6/etc/pki/tls/certs/make-dummy-cert

cURL

curl http://exampleconfig.com/static/raw/openssl/centos6/etc/pki/tls/certs/make-dummy-cert > make-dummy-cert.example