fix: Update cert details
This commit is contained in:
@@ -620,9 +620,9 @@ static int generate_ca_cert() {
|
||||
|
||||
// Set certificate information
|
||||
X509_NAME* name = X509_get_subject_name(ca_cert);
|
||||
X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC, (unsigned char*)"FireProxy CA", -1, -1, 0);
|
||||
X509_NAME_add_entry_by_txt(name, "O", MBSTRING_ASC, (unsigned char*)"FireProxy", -1, -1, 0);
|
||||
X509_NAME_add_entry_by_txt(name, "C", MBSTRING_ASC, (unsigned char*)"US", -1, -1, 0);
|
||||
X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC, (unsigned char*)"FireProxy", -1, -1, 0);
|
||||
X509_NAME_add_entry_by_txt(name, "O", MBSTRING_ASC, (unsigned char*)"Woodburn", -1, -1, 0);
|
||||
X509_NAME_add_entry_by_txt(name, "C", MBSTRING_ASC, (unsigned char*)"AU", -1, -1, 0);
|
||||
|
||||
// Self-sign the certificate
|
||||
X509_set_issuer_name(ca_cert, name);
|
||||
@@ -760,7 +760,7 @@ int generate_trusted_cert(const char* hostname, const char* cert_path, const cha
|
||||
// Set certificate subject
|
||||
X509_NAME* name = X509_get_subject_name(cert);
|
||||
X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC, (unsigned char*)hostname, -1, -1, 0);
|
||||
X509_NAME_add_entry_by_txt(name, "O", MBSTRING_ASC, (unsigned char*)"FireProxy Secured", -1, -1, 0);
|
||||
X509_NAME_add_entry_by_txt(name, "O", MBSTRING_ASC, (unsigned char*)"FireProxy", -1, -1, 0);
|
||||
|
||||
// Set certificate issuer (our CA)
|
||||
X509_set_issuer_name(cert, X509_get_subject_name(ca_cert));
|
||||
|
||||
Reference in New Issue
Block a user