# The file wrong-server.crt is a valid PEM file for testing using the 
# the wrong certificate to connect to a server. To generate a new
# certificate for testing run the following commands and copy the
# resulting server.crt file to "wrong-server.crt"

# Create certificate (will prompt for password):
openssl genrsa -des3 -out server.key.secure 2048

# Create password-less cert:
openssl rsa -in server.key.secure -out server.key

# Create signing request:
openssl req -new -key server.key -out server.csr

# Create self signed cert:
openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
