Index: squid/trunk/source/src/ssl/gadgets.cc =================================================================== --- squid/trunk/source/src/ssl/gadgets.cc (revision 314) +++ squid/trunk/source/src/ssl/gadgets.cc (working copy) @@ -284,6 +284,9 @@ // X509_set_subject_name will call X509_dup for name X509_set_subject_name(cert.get(), name); } + + // Copy the X.509 version + X509_set_version(cert.get(), X509_get_version(properties.mimicCert.get())); } if (properties.setCommonName || !properties.mimicCert.get()) {