Datei mit Blowfish verschlüsseln:
openssl enc -e -a -salt -bf -in datei.txt -out datei.bf enter bf-cbc encryption password: Verifying - enter bf-cbc encryption password:
Datei wieder entschlüsseln:
openssl enc -d -a -bf -in datei.bf -out dateineu.txt enter bf-cbc decryption password:
openssl passwd -1 Password: Verifying - Password:
openssl x509 -inform DER -in myca.cer -out myca.crt
openssl pkcs12 -in wildcard_my.dom_exp_2021.pfx -clcerts -nokeys -out wildcard_my_dom_exp_2021.crt
openssl pkcs12 -in wildcard_my.dom_exp_2021.pfx -nocerts -out wildcard_my_dom_exp_2021.key Enter Import Password: mussmanwissen Enter PEM pass phrase: irgendwasdassdanachsowiesowiedergelöschtwird
openssl rsa -in wildcard_my_dom_exp_2021.key -out wildcard_my_dom_exp_2021nopassphrase.key
cat wildcard_my_dom_exp_2021.crt SectigoRSAOrganizationValidationSecureServerCA.crt >>wildcard_my_domWithChain.crt
openssl x509 -in wildcard_my_domWithChain.crt -noout -text
openssl pkcs12 -export -out mycert.pfx -inkey privateKey.key -in mycert.crt -certfile CACert.crt
openssl x509 -in mycert.pem -out mycert.cer
openssl req -text -noout -verify -in myrequest.csr.
openssl x509 -in mycert.pem -text -noout
openssl x509 -noout -text -in mycert.cer
openssl rsa -in mykey.key -text -noout
openssl x509 -noout -in mycert.cer -enddate
openssl req -nodes -newkey rsa:4096 -keyout test.key -out test.csr \ -subj "/C=DE/ST=NRW/L=Stadt/O=meineFirma GmbH/OU=IT/CN=MeinServer/emailAddress=admin@firma.de/postalCode=1234/street=Steinweg 23" \ -addext "subjectAltName = DNS:meinserv, DNS:meinsrv.meine.firma.de,DNS:meinalias.meine.firma.de" \ -addext "extendedKeyUsage = clientAuth"
openssl rsa –noout –modulus –in <file>.key | openssl md5 openssl req -noout -modulus -in <file>.csr | openssl md5 openssl x509 –noout –modulus –in <file>.crt | openssl md5
der MD5-Wert muß gleich sein.
openssl s_client -connect myserver:443
awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt
oder
openssl crl2pkcs7 -nocrl -certfile /etc/ssl/certs/ca-certificates.crt | openssl pkcs7 -print_certs -noout | grep subject