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 29.5k 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.
    • 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
                      • D
                        digard @anthonys
                        last edited by

                        @anthonys Thanks a bunch! - Had my memory ramping up to the hilt (96%) within a few days, even killing DNS for lack of space. Then I found around 1 G used up for pcscd. Followed your suggestion, and immediately everything was down to normal.

                        I for one call that a real bugger!

                        1 Reply Last reply Reply Quote 0
                        • A
                          albgen
                          last edited by albgen

                          Hello!

                          Current setup is pfsense 2.5.2 as a virtual appliance. I'm connected via RDP on a server on the LAN side. Basically i noted some freezing rdp issues. Than i started to ping and i saw timeout so the issue is with pfsense. As you can see i'm running out of memory. Since a reboot can easily fix this, my question is can i troubleshoot it? Any idea what is happening? the /usr/local/sbin/pcscd is eating almost 60% of ram and the swap is gone...
                          why it is even running the pcscd process?

                          b1c1d49e-a250-4d60-aead-8696c2bcffd0-image.png

                          edit: ok i see it is a known problem but why they have not fixed it yet :)

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

                            It's fixed in 2.6 and 21.09. Before then you can apply patch to 2.5.2 if you are affected:
                            https://redmine.pfsense.org/issues/11933#note-7

                            Steve

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

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

                              but why they have not fixed it yet :)

                              Because a newer version isn't released yet.
                              The code is merged.
                              Merged to into what becomes later on a future version of pfSense.

                              But why wait ?

                              You saw the code jimp posted (above).

                              Stop the pcscd process manually first.
                              Install the patches pfSense package.
                              Create a patch.
                              Copy paste the code jimp showed (see above)
                              Give it a description - like the URL of the forum thread.
                              Now : Ok - Test - and Apply.
                              Done.

                              Example :

                              When you created the patch, you wind up having this :

                              dccd3973-1390-4579-bc13-32d8950de07f-image.png

                              Now,
                              Test,
                              Apply.
                              Solved.

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

                              A fireodoF 2 Replies Last reply Reply Quote 0
                              • A
                                albgen @Gertjan
                                last edited by

                                @gertjan @stephenw10 thanks guys

                                1 Reply Last reply Reply Quote 0
                                • fireodoF
                                  fireodo @Gertjan
                                  last edited by

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

                                  Create a patch.

                                  Done

                                  Copy paste the code jimp showed (see above)

                                  Done

                                  Give it a description - like the URL of the forum thread.

                                  Done

                                  Now : Ok - Test - and Apply.

                                  APPLY is missing ... Hmmmm

                                  ๐Ÿ˜Ÿ

                                  Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                  SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                  pfsense 2.8.0 CE
                                  Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    SteveITS Galactic Empire @fireodo
                                    last edited by

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

                                    APPLY is missing

                                    Did you Fetch (download) it? (docs) Or, if it doesn't show Apply it might not have been entered correctly, and the package is smart enough to not let you break things. The very first one I did I accidentally pasted in he wrong URL and ran into that.

                                    If nothing else you can just stop the service (Status/Services page) until 21.09 is out. Presumably your router won't restart that often...

                                    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                                    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                                    Upvote ๐Ÿ‘ helpful posts!

                                    fireodoF 1 Reply Last reply Reply Quote 0
                                    • fireodoF
                                      fireodo @SteveITS
                                      last edited by

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

                                      Presumably your router won't restart that often...

                                      Indeed. I will wait ... ๐Ÿ™‚

                                      Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                      SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                      pfsense 2.8.0 CE
                                      Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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

                                        Indeed if it doesn't show 'apply' that means it cannot be applied.

                                        What are version are you trying to patch?

                                        You are using this commit ID in the patch? afcc0e9c97c1993ae6b95f886665fcb4375d26c7

                                        Steve

                                        fireodoF 1 Reply Last reply Reply Quote 0
                                        • fireodoF
                                          fireodo @stephenw10
                                          last edited by

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

                                          What are version are you trying to patch?

                                          2.5.2

                                          You are using this commit ID in the patch? afcc0e9c97c1993ae6b95f886665fcb4375d26c7

                                          Yes.

                                          Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                          SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                          pfsense 2.8.0 CE
                                          Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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

                                            Hmm, that should work, I just retested it to be sure. The only reason it wouldn't is if you already have some other changes to the files it's trying to patch.

                                            Steve

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