Project

General

Profile

Actions

Bug #13383

open

Certificates cannot be created via csr in the Certificate Manager

Added by B P about 2 months ago. Updated about 2 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
Certificates
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.6.x
Affected Architecture:
All

Description

Certificates cannot be created via csr in the Certificate Manager since version 2.6.2. The introduced regex seems to have an incorrect syntax, which always leads to the "The field 'State or Province' contains invalid characters." error.

Source: https://github.com/pfsense/pfsense/blob/RELENG_2_6_0/src/usr/local/www/system_camanager.php#L208

Current pattern:

/[^a-zA-Z0-9\ \'\/~`\!@#\$%\^&\*\(\)_\-\+=\{\}\[\]\|;:"\<\>,\.\?\\\]/

Should be (one backslash removed):

/[^a-zA-Z0-9\ \'\/~`\!@#\$%\^&\*\(\)_\-\+=\{\}\[\]\|;:"\<\>,\.\?\\]/

Actions #1

Updated by B P about 2 months ago

Sorry, 2.6 of course. Not 2.6.2 :-)

Seems src/usr/local/www/system_certmanager.php is also affected.

Actions #2

Updated by Jim Pingle about 2 months ago

  • Status changed from New to Feedback
  • Assignee set to Jim Pingle

I cannot reproduce this. I can create a CSR and sign it without error.

We'll need to know the exact input you are using which fails the validation.

Actions

Also available in: Atom PDF