Thank you for your rapid reply, I'm going to read the openssl.txt very well. (really to say, I could not understand that meaning well..I'm sorry.) When I made a self-certificate using following command, openssl req -x509 -newkey rsa:1024 -keyout selfkey.pem -out selfcert.pem I can find the extensions in the certificate. #X509v3 extensions: # X509v3 Subject Key Identifier: # 05:9C:4C:7C:69:38:D7:0D:DE:56:91:55:F2:E7:2D:79:B1:C7:1A:32 # X509v3 Authority Key Identifier: # keyid:05:9C:4C:7C:69:38:D7:0D:DE:56:91:55:F2:E7:2D:79:B1:C7:1A:32 # DirName:/C=JP/ST=Kanagawa/L=Hi........ # serial:00 # X509v3 Basic Constraints: # CA:TRUE There is already the line in the openssl.cnf, as following. [ CA_default ] x509_extensions = usr_cert # The extentions to add to the cert But when I made a user certificate, the extensions of [usr_cert] section don't apear in the certificate, so I thought I needed to make a request. Myabe I cannot understand. Anyway , thanks a lot. Dr S N Henson wrote: >Certificate extensions are not currently transferred from a certificate >request to a certificate. The extensions have to be specified in the >configuration file and are added when the request is signed. > >There is quite a lot of documentation in doc/openssl.txt > >Steve. >Kikuyo Nagamatsu wrote: >> >> Hi all, >> I am a very beginner of OpenSSL. >> >> I want to add one of x509v3 extensions (AuthorityInfoAccess) >> to a certificate, but I can't. >> How can I know the way to add extensions? Is there some document? >> >> Or,if there is someone who did it, can you show me the way? >> (I'm using 0.9.5a) >> >> Now I have two problems. >> >> 1, I can't add any extension to the certificate. >> >> When I enable the line "req_extensions = v3-req" in the file "openssl.cnf" >> and make the certificate request by the following command, >> openssl req -new -keyout newkey.pem -out newreq.pem >> then, I can add the extensions request to the certificate request. >> (off course, they are already defined extensions in the section >> [v3_req].) >> # Requested Extensions: >> # X509v3 Basic Constraints: >> # CA:FALSE >> # X509v3 Key Usage: >> # Digital Signature, Non Repudiation, Key Encipherment >> >> And then I make the certificate by following command using that request >> openssl x509 -req -in newreq.pem -out newcert.pem >> -CA selfcert.pem -CAkey selfkey.pem >> but the extensions don't apear in the certificate. >> >> 2. I can't add another extension to cnf. >> And if I add the new extension entry to the [req_extensions], >> it has been error when I make certificate request. >> % openssl req -new -keyout newkey.pem -out newreq.pem >> Using configuration from /usr/local/ssl/openssl.cnf >> Error Loading request extension section v3_req >> 10016:error:2207C082:X509 V3 routines:DO_EXT_CONF:unknown extension >name:v3_conf.c:121: >> 10016:error:2206B080:X509 V3 routines:X509V3_EXT_conf:error in >> extension:v3_conf.c:91:name=AuthorityInfoAccess, value=http://dvd >> 750:80 >> I think this means my definition is wrong, but how can I make it >> right? Can someone show me the way? Should I define the oid, too? >> ------------------------------------------------------------ 永松 貴久代 (e-mail:[EMAIL PROTECTED]) メランジ株式会社 tel. 0463-27-1653 fax. 0463-27-1753 ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]

Reply via email to