Project

General

Profile

Bug #4202

Updated by Junxiao Shi over 6 years ago

**When When I try to generate a certificate by signing a signing request using the ndnsec command line tools, I get the following error: `ERROR: subject name must be specified`. 

 Steps to reproduce: 

 ``` 
 $ ndnsec key-gen /another_identity 
   [...] 
 $ ndnsec key-gen /identity 
   [...] 
 $ ndnsec sign-req /identity > identity.signreq 
 $ ndnsec cert-gen -s /another_identity -i ai identity.signreq 
 ERROR: subject name must be specified 

 General Usage 
 [...] 
 ``` 
 Apparently, this error is caused by [the check in `tools/ndnsec/cert-gen.cpp`](https://github.com/named-data/ndn-cxx/blob/35109a19d048365fda0a5efdb7c1525404a212a5/tools/ndnsec/cert-gen.cpp#L88) which checks for a `subject-info` option. However, no such option is defined in the available options of the `cert-gen` command and neither is it used later on.

Back