CA erstellen inklusive 2 Server Zertifikate: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „=Arbeitsverzeichnis erstellen= *mkdir ca *cd ca =Private Key der CA erstellen= *openssl genrsa -aes256 -out ca.key 4096 <pre> Generating RSA private key, 4096…“) |
|||
| Zeile 2: | Zeile 2: | ||
*mkdir ca | *mkdir ca | ||
*cd ca | *cd ca | ||
| − | =Private Key der CA erstellen= | + | =CA= |
| + | ==Private Key der CA erstellen== | ||
*openssl genrsa -aes256 -out ca.key 4096 | *openssl genrsa -aes256 -out ca.key 4096 | ||
<pre> | <pre> | ||
| Zeile 19: | Zeile 20: | ||
</pre> | </pre> | ||
;Passwort merken | ;Passwort merken | ||
| − | =CA selbstsignieren= | + | ==CA selbstsignieren== |
*openssl req -new -key ca.key -x509 -days 3650 -out ca.crt | *openssl req -new -key ca.key -x509 -days 3650 -out ca.crt | ||
*Enter pass phrase for ca.key: | *Enter pass phrase for ca.key: | ||
Version vom 5. September 2022, 09:20 Uhr
Arbeitsverzeichnis erstellen
- mkdir ca
- cd ca
CA
Private Key der CA erstellen
- openssl genrsa -aes256 -out ca.key 4096
Generating RSA private key, 4096 bit long modulus (2 primes) ..............................................................................................................................................................................................................................................................................................++++ ..............................................++++ e is 65537 (0x010001) Enter passmkdir ca root@fw1:~# openssl genrsa -aes256 -out ca.key 4096 Generating RSA private key, 4096 bit long modulus (2 primes) ..............................................................................................................................................................................................................................................................................................++++ ..............................................++++ e is 65537 (0x010001) Enter pass phrase for ca.key: Verifying - Enter pass phrase for ca.key:
- Passwort merken
CA selbstsignieren
- openssl req -new -key ca.key -x509 -days 3650 -out ca.crt
- Enter pass phrase for ca.key:
You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:. State or Province Name (full name) [Some-State]:. Locality Name (eg, city) []:. Organization Name (eg, company) [Internet Widgits Pty Ltd]:. Organizational Unit Name (eg, section) []:. Common Name (e.g. server FQDN or YOUR name) []:vpn-ca Email Address []:. root@fw1:~# phrase for ca.key: Verifying - Enter pass phrase for ca.key: root@fw1:~# openssl req -new -key ca.key -x509 -days 3650 -out ca.crt Enter pass phrase for ca.mkdir ca root@fw1:~# openssl genrsa -aes256 -out ca.key 4096 Generating RSA private key, 4096 bit long modulus (2 primes) ..............................................................................................................................................................................................................................................................................................++++ ..............................................++++ e is 65537 (0x010001) Enter pass phrase for ca.key: Verifying - Enter pass phrase for ca.key: root@fw1:~# openssl req -new -key ca.key -x509 -days 3650 -out ca.crt Enter pass phrase for ca.key: You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:. State or Province Name (full name) [Some-State]:. Locality Name (eg, city) []:. Organization Name (eg, company) [Internet Widgits Pty Ltd]:. Organizational Unit Name (eg, section) []:. Common Name (e.g. server FQDN or YOUR name) []:vpn-ca Email Address []:. root@fw1:~# key: You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:. State or Province Name (full name) [Some-State]:. Locality Name (eg, city) []:. Organization Name (eg, company) [Internet Widgits Pty Ltd]:. Organizational Unit Name (eg, section) []:. Common Name (e.g. server FQDN or YOUR name) []:vpn-ca Email Address []:.