Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CERT_SUBJECT

New Here ,
Mar 31, 2009 Mar 31, 2009
I have a certificate and if I run this:
#CERT_SUBJECT#

I get this:
C=IS, OU=einkaskilriki, OU=Auðkenning, OU=1, SERIALNUMBER=2501673779, CN=Sveinbjörn Grétarsson

How can I just display the CN value?
TOPICS
Advanced techniques
509
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Mar 31, 2009 Mar 31, 2009
Sveinbjorn G wrote:
> I have a certificate and if I run this:
> #CERT_SUBJECT#
>=20
> I get this:
> C=3DIS, OU=3Deinkaskilriki, OU=3DAu=F0kenning, OU=3D1, SERIALNUMBER=3D=
2501673779,=20
> CN=3DSveinbj=F6rn Gr=E9tarsson
>=20
> How can I just display the CN value?

ListLast(ListLast(CERT_SUBJECT, ","), "=3D")

--=20
Mack
Translate
LEGEND ,
Mar 31, 2009 Mar 31, 2009
Sveinbjorn G wrote:
> I have a certificate and if I run this:
> #CERT_SUBJECT#
>=20
> I get this:
> C=3DIS, OU=3Deinkaskilriki, OU=3DAu=F0kenning, OU=3D1, SERIALNUMBER=3D=
2501673779,=20
> CN=3DSveinbj=F6rn Gr=E9tarsson
>=20
> How can I just display the CN value?

ListLast(ListLast(CERT_SUBJECT, ","), "=3D")

--=20
Mack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 31, 2009 Mar 31, 2009
Great!
Thanks alot Mack, but just before I mark this as the answer, how do I filter out the "SERIALNUMBER" ?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 31, 2009 Mar 31, 2009
LATEST
Ok, I found out my self:
#ListLast(listGetAt(CERT_SUBJECT, 5), "=")#

There was some extra characters in Mack's answer.

But anyhow, thanks alot Mack.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources