Dear Michael,
Ok I do it, but you have to change more than the
file ./OpenCA/lib/servers/ca/sheets/secure_pin_mail.msg. Here is my new text:
%<----------------------------------
Dear Customer,
your certificate with the
serial number $SER
and the
DN $DN
was generated. You can download it now.
Please use the following PIN to revoke your certificate:
$PIN
Sincerly, your adminstration team
---------------------------------->%
To get this work, there you must insert two line in
file OpenCA/lib/functions/crypto-utils.lib
at line 920. I show the line before and after too:
%<----------------------------------
## load prepared mail
$msg = $tools->getFile (getRequired ('SECURE_PIN_MAIL'));
## replace the PIN in the mail
$msg = $query->subVar( $msg, '$PIN', $pin );
## the next two lines are new
$msg = $query->subVar( $msg, '$SER', hex $ser );
$msg = $query->subVar( $msg, '$DN' , $req->getParsed()->{DN}
);
---------------------------------->%
But now there is a problem more. The email is encrypted. The 'Dear customer'
can't it read till he download the cert.
So one email must be send without PIN and encryption.
Again I can try to do it.
Every email message is stored with that code
if (not $tools->saveFile (
FILENAME => $mail_dir."/".$mail_ser.".msg",
DATA => $enc_msg)) {
Is it ok to store not encrypted messages there with the name
$mail_dir."/notenc".$mail_ser.".msg". ?
Then I will look for all other things to send the notenc messages. For this
work I must take a openca from cvs, isn't it?
Greetings
Harald
--
Dr. Harald Wallus
Results GmbH
Am Listholze 78, D-30177 Hannover
Tel: +49(0)511 90 95 1-23 Fax: +49(0)511 90 95 = 1-90
Email: [EMAIL PROTECTED]
Internet: http://www.results-hannover.de
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Openca-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-users