|
Jon,
make
sure you access the files as binary
i. e.
fopen(filename, "rb") or fopen(filename, "wb");
if you
use fopen()
Robert
I have successfully installed openssl on Windows
2000. I am now testing programs to generate private and pub keys, write
them to a file, and then using the private key to sign a text file. This
code has been taken from UNIX Solaris OS, where it works fine.
I have tried taking the public key, the text to
be signed, and the signature file from the UNIX platform, and using the PC
decryption program to check that the signature file matches the decrypted
signature. Although they do match on the UNIX platform, on the PC they
do not.
It may have something to do with writing the keys
and signature to file using the i2d_.. functions. Has anyone any
ideas?
Jon Brace
|