Merge branch 'master' of git.kemt.fei.tuke.sk:js331zc/MastersThesis
This commit is contained in:
commit
e1a07c284a
@ -30,7 +30,11 @@ cd ./openssl
|
|||||||
make -j 1
|
make -j 1
|
||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
|
- prepínač `-DOQS_DEFAULT_GROUPS` umožňuje meniť key exchange algoritmy, ktoré bude server podporovať
|
||||||
|
- zoznam všetkých podporovaných algoritmov - https://github.com/open-quantum-safe/openssl#key-exchange
|
||||||
|
|
||||||
**5. Vytvorenie CA kľúča a certifikátu**
|
**5. Vytvorenie CA kľúča a certifikátu**
|
||||||
|
- v tomto príklade je *p256_dilithium2* hybridný algoritmus *dilithium2* s použitím P256 ECDH krivkou
|
||||||
|
|
||||||
```
|
```
|
||||||
cd ./openssl/apps
|
cd ./openssl/apps
|
||||||
@ -45,6 +49,7 @@ cd ./openssl/apps
|
|||||||
./openssl x509 -req -in p256_dilithium2_srv.csr -out p256_dilithium2_srv.crt -CA p256_dilithium2_CA.crt -CAkey p256_dilithium2_CA.key -CAcreateserial -days 365
|
./openssl x509 -req -in p256_dilithium2_srv.csr -out p256_dilithium2_srv.crt -CA p256_dilithium2_CA.crt -CAkey p256_dilithium2_CA.key -CAcreateserial -days 365
|
||||||
```
|
```
|
||||||
**8. Spustenie serveru a klienta**
|
**8. Spustenie serveru a klienta**
|
||||||
|
- oba programy je potrebné spustiť v samostatných oknách terminálu
|
||||||
```
|
```
|
||||||
./openssl s_server -cert p256_dilithium2_srv.crt -key p256_dilithium2_srv.key -www -tls1_3
|
./openssl s_server -cert p256_dilithium2_srv.crt -key p256_dilithium2_srv.key -www -tls1_3
|
||||||
./openssl s_client -groups kyber1024 -CAfile p256_dilithium2_CA.crt -connect localhost
|
./openssl s_client -groups kyber1024 -CAfile p256_dilithium2_CA.crt -connect localhost
|
||||||
|
Loading…
Reference in New Issue
Block a user