#-*- mode: org; mode:visual-line; mode:org-indent -*-
openssl enc -a -salt -bf -in testfile -out testfile-enc
openssl enc -d -a -salt -bf -in testfile-enc -out mytestfile
openssl rsautl -enc -inkey /path/to/my_private.key < test.txt > test-enc.txt
openssl rsautl -decrypt -inkey /path/to/my_private.key < test-enc.txt > test-zadarsan.txt
base64 BINARY_FILE > ASCII_FILE
base64 -d ASCII_FILE > BINARY_FILE
openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -out public.pem -outform PEM -pubout # PEM хэлбэр нь аски текст хэлбэртэй байдаг.
өөр арга:
openssl x509 -inform pem -in certificate.pem -pubkey -noout > publickey.pem
openssl pkcs12 -in private.p12 -out myPublicKey.pem -clcerts -nokeys
openssl rsautl -encrypt -inkey others_public.pem -pubin -in input_file.txt -out output_file_enc
openssl rsautl -decrypt -inkey private.pem -in input_file_enc -out output_file.txt
openssl rsa -in private.pem -des3 -out private_new.pem
openssl x509 -noout -text -in datei.cer -inform DER openssl x509 -noout -text -in datei.cer -inform DEM
openssl pkcs12 -info -nokeys -in certificate.p12
openssl x509 -inform DER -in user.cer -out user.pem -outform pem
openssl crl2pkcs7 -nocrl -certfile certificate.cer -outform der -out certficate.p7b
openssl ocsp -issuer issuer.pem -cert user.pem -text -CAfile issuer.pem -url http://ocsp.bnotk.de/ocsp/bnotk/qsig openssl ocsp -respin <RESP_FILE.der> -text
http://gagravarr.org/writing/openssl-certs/ http://sial.org/howto/openssl/ http://www.vanemery.com/Linux/Apache/openSSL.html