# Generowanie klucz prywatnego
openssl genrsa -out uchacz.it.key 2048
# Generowanie CSR na podstawie wygnerowanego klucza
openssl req -new -key uchacz.it.key -out uchacz.it.csr
#Country Name (2 letter code) [AU]:PL
#State or Province Name (full name) [Some-State]:Dolnoslaskie
#Locality Name (eg, city) []:Wroclaw
#Organization Name (eg, company) [Internet Widgits Pty Ltd]:Uchacz Corp
#Organizational Unit Name (eg, section) []:IT
#Common Name (e.g. server FQDN or YOUR name) []:uchacz.it
#Email Address []:ilovespam@uchacz.it
# Sprawdzenie CSR
openssl req -in uchacz.it.csr -noout -text | grep Subject
#Subject: C = PL, ST = Dolnoslaskie, L = Wroclaw, O = Uchacz Corp, OU = IT, CN = uchacz.it, emailAddress = ilovespam@uchacz.it