Project

General

Profile

Actions

Bug #10362

closed

Error renewing cert if SAN contains IP Address

Added by Viktor Gurov about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Category:
Certificates
Target version:
Start date:
03/20/2020
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.5.0
Affected Architecture:

Description

example SAN: DNS:tkWAN2, IP Address:10.123.123.4

If I try to renew it, I get the message 'Error renewing Certificate' and:

PHP Errors:
PHP Warning:  in_array() expects parameter 2 to be array, null given in /etc/inc/certs.inc on line 1658
PHP Warning:  openssl_csr_new(): Error loading extensions_section section server_san of /etc/ssl/openssl.cnf in /etc/inc/certs.inc on line 1682
PHP Warning:  openssl_csr_new(): Error loading extensions_section section server_san of /etc/ssl/openssl.cnf in /etc/inc/certs.inc on line 1682

pfSense 2.5.0.a.20200319.0930

Actions #1

Updated by Viktor Gurov about 4 years ago

https://www.openssl.org/docs/manmaster/man5/x509v3_config.html#Subject-Alternative-Name:

The subject alternative name extension allows various literal values to be included in the configuration file.
These include email (an email address) URI a uniform resource indicator, DNS (a DNS domain name),
RID (a registered ID: OBJECT IDENTIFIER), IP (an IP address), dirName (a distinguished name) and otherName

Correct SAN is IP, not IP Address

Fix:
https://github.com/pfsense/pfsense/pull/4244

Actions #2

Updated by Jim Pingle about 4 years ago

  • Status changed from New to Pull Request Review
Actions #3

Updated by Renato Botelho about 4 years ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Renato Botelho
  • % Done changed from 0 to 100

PR has been merged. Thanks!

Actions #4

Updated by Viktor Gurov about 4 years ago

  • Status changed from Feedback to Resolved

renewing is OK on 2.5.0.a.20200321.2101

Actions

Also available in: Atom PDF