2011/12/17 Yang Chun-Kai <waitmefore...@hotmail.com>: > Hello~everyone~ > > As titled, genpkey command not found in 0.9.8, so is this new in latest > version? RSA (112 bits of security): $ openssl genrsa -out rsa-openssl.pem 2048 $ openssl pkcs8 -nocrypt -in rsa-openssl.pem -inform PEM -topk8 -outform DER -out rsa-openssl.der
DSA (80 bits of security): $ openssl dsaparam -out dsa-param-openssl.pem 1024 $ openssl gendsa -out dsa-openssl.pem dsa-param-openssl.pem $ openssl pkcs8 -nocrypt -in dsa-openssl.pem -inform PEM -topk8 -outform DER -out dsa-openssl.der ECC (128 bits of security): $ openssl ecparam -name secp256k1 -genkey -param_enc explicit -outform DER -out ec-openssl.der All keys are PKCS8. Jeff ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org