miroir de
https://github.com/wolfSSL/wolfssl.git
synchronisé 2025-01-18 21:24:54 +00:00
fb531dacc2
Add support for parsing and verifying certificates with RSA-PSS signatures. Including check PSS parameters in key with those in signature algorithm. Add support for parsing private RSA PSS key. Add support for parsing public RSA PSS key.
29 lignes
944 o
Bash
Fichier exécutable
29 lignes
944 o
Bash
Fichier exécutable
#!/bin/sh
|
|
|
|
for key in root ca server client
|
|
do
|
|
|
|
openssl genpkey -algorithm RSA-PSS -pkeyopt rsa_keygen_bits:2048 -pkeyopt rsa_pss_keygen_md:sha256 -pkeyopt rsa_pss_keygen_mgf1_md:sha256 -pkeyopt rsa_pss_keygen_saltlen:32 > ${key}-rsapss-priv.pem
|
|
|
|
openssl pkey -in ${key}-rsapss-priv.pem -outform DER -out ${key}-rsapss-priv.der
|
|
|
|
openssl pkey -in ${key}-rsapss-priv.pem -outform PEM -pubout -out ${key}-rsapss-key.pem
|
|
|
|
openssl pkey -in ${key}-rsapss-priv.pem -outform DER -pubout -out ${key}-rsapss-key.der
|
|
|
|
done
|
|
|
|
for key in root-3072 ca-3072 server-3072 client-3072
|
|
do
|
|
|
|
openssl genpkey -algorithm RSA-PSS -pkeyopt rsa_keygen_bits:3072 > ${key}-rsapss-priv.pem
|
|
|
|
openssl pkey -in ${key}-rsapss-priv.pem -outform DER -out ${key}-rsapss-priv.der
|
|
|
|
openssl pkey -in ${key}-rsapss-priv.pem -outform PEM -pubout -out ${key}-rsapss-key.pem
|
|
|
|
openssl pkey -in ${key}-rsapss-priv.pem -outform DER -pubout -out ${key}-rsapss-key.der
|
|
|
|
done
|
|
|
|
|