Hi, I would like to discuss an issue only remotely related to OpenCA, but this may evolve into a feature also implemented there.
I feel that OpenSSL is missing an important feature that could be added easily, and that is currently pretty hard to work around. But perhaps I am missing an already existing feature I have simply not found, and someone just points me to the right command line option. I am currently working on a Root CA setup based on some shell scripts around OpenSSL. Consider the creation of a self-signed Root certificate. Normally you use something like $ openssl req -x509 ... Unlike the 'ca' command, OpenSSL's 'req' command does not support '-startdate' and '-enddate'. Thus it is only possible to certify a self-signed certificate for a certain number of days starting from now. This may not be desirable in all cases, and in fact is not for my special situation. I need a self-signed certificate with an absolute validity range. The obvious solution would be to add -startdate and -enddate to 'req' just like in 'ca', but this would involve patching OpenSSL, and I don't want to do this without good reason. In particular it will take some time for the change to be included in new versions of OpenSSL - if it is accepted. So I am now trying a different approach, a bad hack, that even does not fully work: - generate a private key - create a temporary self-signed certificate using this key with the appropriate subject name and validity of one day (to emphasize that this certificate is just a temporary hack) - extract the subject name from this cert and create a new certificate request using the same subject name and private key - reset the serial number file to make OpenSSL reuse the temporary certificate serial number - use the openssl 'ca' command with -startdate and -enddate to issue the certificate. the certificate is thus signed using the temporary certificate from above - delete temporary certificate this approach has several drawbacks: - it is a really dirty hack - a 'rogue' root certificate is created - probably not a practical problem, but not desirable for clean processes in PKIs - the private key pass phrase must be entered three times (instead of once using 'req -x509') - the certificate subject is not copied verbatim by the 'req -subj' command (in my tests L=... was ignored) So what does the rest of this list think about my problem? Martin ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ Openca-Users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openca-users
