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

    Users certificates' expiration time

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 1 Posters 513 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.
    • L Offline
      ladz
      last edited by

      Hello,

      I'd like to get information about users certificates' expiration time via shell (script) - not via GUI. Is it possible?

      Thank you very much

      1 Reply Last reply Reply Quote 0
      • L Offline
        ladz
        last edited by

        Hi all,

        I investigated it.
        For information:

        Certificates are saved in file /conf/config.xml between tags
        1. decode certificate
        cert=echo $crt | openssl enc -base64 -d -A
        2.  obtain expiration date
        date=echo $cert | openssl x509 -noout -enddata

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