> 1) you create a private key ( this is the secret key ... ) > > 2) you create a public key corresponding to the private key. This key > can not be reversed to get a private key, tat is the main advantage of > public key cryptography.
Ok. I understand this. Would the following command do these two steps in one (combined with my openssl.cnf file)? # openssl req -x509 -newkey rsa:2048 -out cacert.pem -outform PEM -nodes > Effectively these 2 keys are enough for u to communicate to > any others. > But there are potential vulnerabilities on using a self signed > certificate What are the potential vulnerabilities? > okie now wat is a self signed certificate.. As of now u > have only 2 keys pub and priv .. Now u have to convert a pub key to a > certificate.. Here u create a certificate by signing the > public key with > u r private key.. If u do it with the same private key corr to the pub > key then it is called a self signed certificate.. Confusing.. > Okie think > it like this.. > > Pub (mark) -- public key of urs > Priv (mark) - Private key of urs... > > U sign [ pub(mark) ] with the priv (mark) to get a self signed cert.. > There are diff types or cert format .. Some certificate format like > x.509 does not need a private key to bundle with the public key.. Some > format like PKCS 12 need both pub and private key to be bundled > together.. It is not a very gud option to bundle the private > key because u do not want any one to see u r private key.. I'm not sure what X509 or PKCS12 are. > Now u need to have a certificate signed by a CA.. In this case u will > send the pub(mark) to the CA and CA signs it with the Priv (CA).. For > that CA must verify tat u r public key is derived from u r private key > else I can impose tat I am Mark.. For this purpose u prob > use a PKCS 12 > format or even a CSR.. Certification sign request.. This is a format > which will show to the CA tat the person who has requested the CSR > contain both pub and priv key... Make sense !!!! ... I am beginning to get confused again! What is a CSR? The following command seems to create a new public and private key: # openssl req -newkey rsa:1024 -keyout nuckey.pem -keyform PEM -out nucreq.pem -nodes -outform PEM What are these key files for? How can I create a certificate for a client? TIA, Mark ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
