diff --git a/lib/NGCP/Panel/Controller/Device.pm b/lib/NGCP/Panel/Controller/Device.pm index f5b9e9f521..c96f961d2f 100644 --- a/lib/NGCP/Panel/Controller/Device.pm +++ b/lib/NGCP/Panel/Controller/Device.pm @@ -935,6 +935,16 @@ sub dev_field_ajax :Chained('base') :PathPart('device/ajax') :Args(0) :Does(ACL) sub dev_field_config :Chained('/') :PathPart('device/autoprov/config') :Args() { my ($self, $c, $id) = @_; +=pod + # this is going to be used if we want to do the cert check on the server, + # the format is like this: + # /C=US/ST=708105B37234/L=CBT153908BX/O=Cisco Systems, Inc./OU=cisco.com/CN=SPA-525G2, MAC: 708105B37234, Serial: CBT153908BX/emailAddress=linksys-certadmin@cisco.com + # however, we should do it on nginx, but we need a proper CA cert + # from cisco for checking the client cert? + my $ssl_dn = $c->request->env->{SSL_CLIENT_M_DN} // ""; + say ">>>>>>>>>>>>> ssl_dn=$ssl_dn"; +=cut + unless($id) { $c->response->content_type('text/plain'); if($c->config->{features}->{debug}) { diff --git a/ngcp_panel.conf b/ngcp_panel.conf index f3ee4c203a..1ab551d65a 100644 --- a/ngcp_panel.conf +++ b/ngcp_panel.conf @@ -102,7 +102,7 @@ log4perl.appender.Default.layout.ConversionPattern=%d{ISO8601} [%p] [%F +%L] %m{ - secure 0 - host agranig-office.sipwise.com - port 1444 + secure 1 + host ciscospa.sipwise.com + port 4444