Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
SelfSignedCert
SelfSignedCert

No Format
$# opensslFor genrsaHTTPS -out server.key 1024  servers remember to put the 
# Generate server privateFQDN keyin $the opensslCN.
req -new -key server.key \
                   -out server.csr       # Create Certifiserverte Signing Request
                                         # For HTTPS servers remember to put the 
                                         # server FQDN in the CN.
$ 
KEY="$CN.key"
CSR="$CN.csr"
CRT="$CN.crt"

# Generate key
openssl genrsa -out "$KEY" 1024 || exit 1

# Certificate Signing Request (Remember to modify the signing request subject)
openssl req -new -key "$KEY" -out "$CSR" -subj "/C=DK/O=TestOrganization/OU=TestDepartment/CN=$CN" || exit 1

# Self sign
openssl x509 -req -days 10000 \
               1000 -in server.csr \
               -out server.crt \
               -signkey server.key       # Create self-signed certifiserverte"$CSR" -out "$CRT" -signkey "$KEY" || exit 1

Creating a certificate authority for test

...