Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    "pcscd PC/SC Smart Card Daemon" ?

    Scheduled Pinned Locked Moved General pfSense Questions
    70 Posts 22 Posters 31.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      Izaac @DaddyGo
      last edited by

      @daddygo I guess you've never been through a security audit. Allow me to give you a sneak peak:
      Some Overseas Checklist Drone: "Why is this red error on your firewall appliance configuration evidence?"
      Overworked Administrator: "That feature is disabled."
      Drone: "Why do you not use this feature of your firewall appliance?"
      Admin: "Because we do not use smartcards as part of our authentication process."
      Drone: "Why do you not use smartcards as part of your authentication process?"
      Admin: "Because there is no hardware support for it and, in this context, it offers no advantages and makes no sense."
      Drone: "I will be leaving this as an open issue for the configuration of your firewall appliance. Enabling all features for full protection from your firewall appliance is needful."

      What could (or should) the green/red little icon in the 'Service Status' widget represent? Conformity to the configuration, e.g. if pcscd is not enabled, green shows it correctly stopped and red indicates an error state in which it is operating.

      Assuming that doesn't happen, here's a horrifying patch to make it disappear and prevent you from having to "please to be doing" anything:

      --- a/usr/local/www/widgets/widgets/services_status.widget.php    2021-05-28 07:35:21.000000000 -0400
      +++ b/usr/local/www/widgets/widgets/services_status.widget.php   2021-07-28 08:44:17.790560000 -0400
      @@ -31,6 +31,11 @@
       
       $services = get_services();
       
      +// horrifying patch for papering over pcscd
      +if ($pewpew = array_search('pcscd', array_column($services, 'name'))) {
      +       array_splice($services, $pewpew, 1);
      +}
      +
       $numsvcs = count($services);
       
       for ($idx=0; $idx<$numsvcs; $idx++) {
      
      johnpozJ DaddyGoD I 3 Replies Last reply Reply Quote 3
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @Izaac
        last edited by

        @izaac Oh man that is so true! ;) Sad but true!!

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • DaddyGoD
          DaddyGo @Izaac
          last edited by

          @izaac said in "pcscd PC/SC Smart Card Daemon" ?:

          I guess you've never been through a security audit.

          No, really, never... maybe teach me how it's done ๐Ÿ˜Š
          as Jimp wrote, it's pointless to make a big deal of it, but if you need it just shout it out here..

          Thank you for your follow up

          Cats bury it so they can't see it!
          (You know what I mean if you have a cat)

          johnpozJ 1 Reply Last reply Reply Quote 1
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @DaddyGo
            last edited by johnpoz

            @daddygo come on dude don't be so serious - that was seriously funny, and spot on.. hehehe

            We all get it - but he does have a point about some of the nonsense that can come out of those drone based audits, how many checks can be tallied up without a clue.. But hey these items were discovered that causes extra work and pain for zero reason..

            I recall one that just got my dander up.. On why the servers screen savers were not set to lock after 1 minute in the server room

            Because its a locked room, in a secured building - and only admins have access to the room.. And 1 minute timeout is counterproductive to actual work.. So its set to 10 minutes..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            DaddyGoD 1 Reply Last reply Reply Quote 2
            • I
              Izaac @Izaac
              last edited by Izaac

              @izaac @chudak Let's try that again, but now with more system status page, since the widget does let you mask via UI:

              --- a/usr/local/www/status_services.php  2021-05-28 07:35:21.000000000 -0400
              +++ b/usr/local/www/status_services.php  2021-07-28 09:14:03.699292000 -0400
              @@ -64,6 +64,11 @@
               
               $services = get_services();
               
              +// horrifying patch for papering over pcscd
              +if ($pewpew = array_search('pcscd', array_column($services, 'name'))) {
              +       array_splice($services, $pewpew, 1);
              +}
              +
               // $debugsvcs = array('name' => 'captiveportal', 'description' => 'Captive Portal', 'zone' => '14');
               // array_push($services, $debugsvcs);
               
              

              Just drop it into the System_Patches package with a Path Strip Count of '1' and a Base Directory of '/', if you're unfamiliar.

              GertjanG 1 Reply Last reply Reply Quote 0
              • DaddyGoD
                DaddyGo @johnpoz
                last edited by

                @johnpoz said in "pcscd PC/SC Smart Card Daemon" ?:

                come on dude don't be so serious - that was seriously funny, and spot on.. hehehe

                Nope John, it's not a good day for me, but I don't take it seriously... ๐Ÿ˜‰

                either I'm being rude lately or people are so snappy

                • yesterday was the same - only with someone else

                I don't miss it :)

                Cats bury it so they can't see it!
                (You know what I mean if you have a cat)

                I 1 Reply Last reply Reply Quote 0
                • I
                  Izaac @DaddyGo
                  last edited by

                  @daddygo said in "pcscd PC/SC Smart Card Daemon" ?:

                  it's not a good day for me

                  Broadband can be so slow.
                  Sorry to hear that. Hope things work out.

                  DaddyGoD 1 Reply Last reply Reply Quote 2
                  • DaddyGoD
                    DaddyGo @Izaac
                    last edited by

                    @izaac said in "pcscd PC/SC Smart Card Daemon" ?:

                    Sorry to hear that. Hope things work out.

                    that felt good to me / pls. forgive my initial indignation, THX ๐Ÿ‘

                    I'm just nervous about my flight (will be on Friday), stupid PCR tests + digital COVID passport, but finally after 1.5 years I can see my parents โœ‹

                    Cats bury it so they can't see it!
                    (You know what I mean if you have a cat)

                    johnpozJ 1 Reply Last reply Reply Quote 1
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator @DaddyGo
                      last edited by

                      @daddygo -- yeah we recently got to see our grandkids after like 1.5 years of only alexa video calls and facetime..

                      Get your visit in -- seems more and more lock downs coming for sure..

                      We are wondering if scheduled trip in oct will have to be rescheduled yet again because of future lock downs.. Surges again all over - yet they are still running lollapalooza here in chicago with expected 100k people a day.. That sure seems like a super spreader event to me.. The world is crazy right now...

                      So understandable how people can be on edge, etc. I didn't really see your comments or rude or anything - just that you were not seeing his humor maybe.. I thought it was funny as shit! hehehe

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                      DaddyGoD 1 Reply Last reply Reply Quote 0
                      • DaddyGoD
                        DaddyGo @johnpoz
                        last edited by

                        @johnpoz said in "pcscd PC/SC Smart Card Daemon" ?:

                        Get your visit in -- seems more and more lock downs coming for sure..

                        Jeah, people think they got two injections and COVID is gone...
                        Our parents live 4000 km from me and my family..., we are very happy now that maybe our plane will take off on Friday.

                        Here in EU it's still a lot of administration, tomorrow morning at 8 o'clock test, then the test will be in the database, then we are anxious to get a negative result in the Android App, digital COVID license.
                        (before that, I flew every 3-4 weeks)

                        12 changes in the last 10 months on a flight which was booked at the end of 2020, it's a joke, but it's true.

                        Seriously, only after 1.5 years I'm going to get to my hometown(?!), + I can't see the end of my works, as I haven't been to our Hungarian data centre for 1.5 years either.

                        It's a long ToDo list, but somewhere deep in my heart I'm happy to be travelling. :)

                        Yes and the damn "D" variant is here too, this will only give me a headache in September when we will come back to Portugal.

                        BTW:
                        yes this "lockdown" may have killed the "humour" out of me, hahaha, - no definitely not

                        Cats bury it so they can't see it!
                        (You know what I mean if you have a cat)

                        chudakC johnpozJ 2 Replies Last reply Reply Quote 1
                        • chudakC
                          chudak @DaddyGo
                          last edited by

                          Everybody have a nice day !

                          PS: On a more positive note - pfsense and this forum are great way for us to socialize at least virtually !

                          DaddyGoD 1 Reply Last reply Reply Quote 3
                          • DaddyGoD
                            DaddyGo @chudak
                            last edited by

                            @chudak said in "pcscd PC/SC Smart Card Daemon" ?:

                            pfsense and this forum are great way for us to socialize at least virtually

                            I am not religious, but I have to say โ€ Amen Bro โœ‹

                            Cats bury it so they can't see it!
                            (You know what I mean if you have a cat)

                            1 Reply Last reply Reply Quote 0
                            • johnpozJ
                              johnpoz LAYER 8 Global Moderator @DaddyGo
                              last edited by

                              @daddygo said in "pcscd PC/SC Smart Card Daemon" ?:

                              Jeah, people think they got two injections and COVID is gone...

                              And don't forget the added bonus of better wifi connection after the chip has finished setting in ;)

                              An intelligent man is sometimes forced to be drunk to spend time with his fools
                              If you get confused: Listen to the Music Play
                              Please don't Chat/PM me for help, unless mod related
                              SG-4860 24.11 | Lab VMs 2.8, 24.11

                              DaddyGoD 2 Replies Last reply Reply Quote 1
                              • DaddyGoD
                                DaddyGo @johnpoz
                                last edited by

                                @johnpoz said in "pcscd PC/SC Smart Card Daemon" ?:

                                don't forget the added bonus of better wifi connection

                                Hey isn't that more like 5G telecom towers?
                                Hmmm,... people are angry at the towers, because their spreading the COVID :)

                                Cats bury it so they can't see it!
                                (You know what I mean if you have a cat)

                                1 Reply Last reply Reply Quote 0
                                • GertjanG
                                  Gertjan @Izaac
                                  last edited by

                                  @izaac said in "pcscd PC/SC Smart Card Daemon" ?:

                                  @izaac @chudak Let's try that again, but now with more system status page, since the widget does let you mask via UI:

                                  --- a/usr/local/www/status_services.php  2021-05-28 07:35:21.000000000 -0400
                                  +++ b/usr/local/www/status_services.php  2021-07-28 09:14:03.699292000 -0400
                                  @@ -64,6 +64,11 @@
                                   
                                   $services = get_services();
                                   
                                  +// horrifying patch for papering over pcscd
                                  +if ($pewpew = array_search('pcscd', array_column($services, 'name'))) {
                                  +       array_splice($services, $pewpew, 1);
                                  +}
                                  +
                                   // $debugsvcs = array('name' => 'captiveportal', 'description' => 'Captive Portal', 'zone' => '14');
                                   // array_push($services, $debugsvcs);
                                   
                                  

                                  Just drop it into the System_Patches package with a Path Strip Count of '1' and a Base Directory of '/', if you're unfamiliar.

                                  I had an "off by one" issue :
                                  The array_search() returned "8" (for me) but it was element ninth that had to be removed.

                                  +       array_splice($services, $pewpew+1, 1);
                                  

                                  No "help me" PM's please. Use the forum, the community will thank you.
                                  Edit : and where are the logs ??

                                  DaddyGoD 1 Reply Last reply Reply Quote 1
                                  • jimpJ
                                    jimp Rebel Alliance Developer Netgate
                                    last edited by

                                    This is in an internal PR which will be merged soon:

                                    diff --git a/src/etc/inc/service-utils.inc b/src/etc/inc/service-utils.inc
                                    index e74acbfb1fb8334a8f7fc717bf58d5449ad8593d..c0a891ced023cc7abaf87bbba1c9611d03c482a6 100644
                                    --- a/src/etc/inc/service-utils.inc
                                    +++ b/src/etc/inc/service-utils.inc
                                    @@ -270,12 +270,14 @@ function get_services() {
                                     		$services[] = $pconfig;
                                     	}
                                     
                                    -	$pconfig = array();
                                    -	$pconfig['name'] = "pcscd";
                                    -	$pconfig['description'] = gettext("PC/SC Smart Card Daemon");
                                    -	$pconfig['enabled'] = is_service_enabled("pcscd");
                                    -	$pconfig['status'] = get_service_status($pconfig);
                                    -	$services[] = $pconfig;
                                    +	if (isset($config['ipsec']['pkcs11support'])) {
                                    +		$pconfig = array();
                                    +		$pconfig['name'] = "pcscd";
                                    +		$pconfig['description'] = gettext("PC/SC Smart Card Daemon");
                                    +		$pconfig['enabled'] = is_service_enabled("pcscd");
                                    +		$pconfig['status'] = get_service_status($pconfig);
                                    +		$services[] = $pconfig;
                                    +	}
                                     
                                     	if (is_array($config['ntpd']) && ($config['ntpd']['enable'] != 'disabled')) {
                                     		$pconfig = array();
                                    

                                    Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                                    Need help fast? Netgate Global Support!

                                    Do not Chat/PM for help!

                                    1 Reply Last reply Reply Quote 4
                                    • DaddyGoD
                                      DaddyGo @Gertjan
                                      last edited by DaddyGo

                                      @gertjan said in "pcscd PC/SC Smart Card Daemon" ?:

                                      but it was element ninth that had to be removed.

                                      the whole world can see how a small thing can generate a big question..

                                      no one, but no one, is so concerned about the NSO scandal...
                                      (I hate the politic, - personally)

                                      this is also informatics, in my reading I hope..
                                      (pcscd PC/SC Smart Card Daemon)

                                      BTW:
                                      before anyone attacks this souvenir of my opinion, excuse me ๐Ÿ‘

                                      Cats bury it so they can't see it!
                                      (You know what I mean if you have a cat)

                                      1 Reply Last reply Reply Quote 0
                                      • DaddyGoD
                                        DaddyGo @johnpoz
                                        last edited by DaddyGo

                                        @johnpoz said in "pcscd PC/SC Smart Card Daemon" ?:

                                        And don't forget

                                        hello everyone, I just received, now... (2 minutes ago)

                                        2a4326f9-cd33-4c29-88ad-c99fefba35af-image.png

                                        hahaha, I'm going home!!! ๐Ÿ˜Š - finaly

                                        Cats bury it so they can't see it!
                                        (You know what I mean if you have a cat)

                                        1 Reply Last reply Reply Quote 2
                                        • stephenw10S
                                          stephenw10 Netgate Administrator
                                          last edited by

                                          Nice. Take care! โ˜บ

                                          DaddyGoD 1 Reply Last reply Reply Quote 1
                                          • DaddyGoD
                                            DaddyGo @stephenw10
                                            last edited by DaddyGo

                                            @stephenw10 said in "pcscd PC/SC Smart Card Daemon" ?:

                                            Nice. Take care!

                                            Thanks for everyone huhuhuhuhuh, I'm traveling
                                            I can finally hug my mum, who is 69 years old, the greatest mom!

                                            +++edit:

                                            I know everyone's mum is great! :)

                                            Cats bury it so they can't see it!
                                            (You know what I mean if you have a cat)

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.