On Tue, Jul 30, 2002 at 03:27:40PM +0800, Stone Shi wrote: > Hello, all > > I installed Apache+mod_ssl+OpenSSL as HTTPS Server, and I must make the > server support the Wrong Format Certificate(See in attechment). > How can I do?
I could see nothing wrong with this certificate. DER encoding is good enough; one could make it PEM easily if required > private key in following format > > typedef struct { > unsigned int bits; > unsigned char modulus[128]; > unsigned char publicExponent[128]; > unsigned char exponent[128]; > unsigned char prime[2][64]; > unsigned char primeExponent[2][64]; > unsigned char coefficient[64]; > } R_RSA_PRIVATE_KEY; Maybe, private key was saved as write(, just_another_one_encoding, sizeof(R_RSA_PRIVATE_KEY)) If so, one could read() it back and set a EVP_PKEY. It's still unclean how exactly numbers were broken into unsigned chars, BN_bin2bn() may be handy to set EVP_PKEY RSA components. hope this helps, Vadim ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]