18-Aug-2020 09:11
Hi,
I need to get content of the certificate and can't find way to get it via API, so trying to get it via bash.
I work with SSL certs in /config/filestore/files_d/<partition>_d/certificate_d and I would need to understand what's meaning of suffixes like "_454645_1"
[root@lbtest01b:Active:In Sync] certificate_d # ll | grep test.zemba
-rw-r--r--. 1 root root 1326 2020-08-12 10:35 :zemba-nesahat2:chain_test_zemba_CA.crt_454645_1
-rw-r--r--. 1 root root 1362 2020-08-18 10:51 :zemba-nesahat2:test.zemba.com_CAnew.crt_455114_2
-rw-r--r--. 1 root root 1370 2020-08-18 17:52 :zemba-nesahat2:test.zemba.com.crt_455037_32
I can't find any relation to specific file from API calls and guessing suffix or searching through bash call is not optimal for me.
Thanks a lot for any hint,
Zdenek
18-Aug-2020
10:19
- last edited on
22-Nov-2022
07:47
by
JimmyPackets
Hello Zdenda.
Those codes are created randomly.
To relate config and bash certs you should take into account the hash code:
# tmsh list sys file ssl-cert test.crt | grep SHA1
checksum SHA1:948:656fbc3d6b0125f823f20d920f698dc8d454cdbf
# cat /config/filestore/files_d/Common_d/certificate_d/:Common:test.crt_40784_1 | sha1sum
656fbc3d6b0125f823f20d920f698dc8d454cdbf -
Regards,
Dario.
01-Feb-2021 02:47
Thank you.
Would be nice, as there must be some connectio between config object and the content in the filestore. If that connection is readable through API. Mabye once in future 🙂