Skip to content

Commit

Permalink
Randomize serial number a bit to please Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
kvic-z committed Dec 24, 2015
1 parent 7e35e72 commit 817aad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion certs.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static void generate_cert(char* pem_fn, const char *pem_dir, const char *issuer,
#endif
if((x509 = X509_new()) == NULL)
goto free_all;
ASN1_INTEGER_set(X509_get_serialNumber(x509),1); // always 1 ok for our ad servers..
ASN1_INTEGER_set(X509_get_serialNumber(x509),(unsigned)time(NULL));
X509_set_version(x509,2); // X509 v3
X509_gmtime_adj(X509_get_notBefore(x509), 0);
X509_gmtime_adj(X509_get_notAfter(x509), 315360000L); // cert valid for 10yrs
Expand Down
2 changes: 1 addition & 1 deletion util.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <arpa/inet.h>

// preprocessor defines
#define VERSION "V35.HZ12.Kf"
#define VERSION "V35.HZ12.Kg"

#define BACKLOG SOMAXCONN // how many pending connections queue will hold
#define CHAR_BUF_SIZE 4095 // surprising how big requests can be with cookies and lengthy yahoo url!
Expand Down

0 comments on commit 817aad5

Please sign in to comment.