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

Users certificates' expiration time

Scheduled Pinned Locked Moved OpenVPN
2 Posts 1 Posters 500 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
    ladz
    last edited by Mar 8, 2017, 7:32 AM

    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
      ladz
      last edited by Mar 13, 2017, 7:30 AM

      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
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received