Quantcast

Escaped Issuer/Subject

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Escaped Issuer/Subject

c.holper@ades.at
Hi!

Is it possible to get the distinguished name of issuer or subject in a
escaped form out of the box?

e.g.
C=US, O=test, Inc., OU=department=1, CN=tester <sam>"
C=US, O=test\, Inc., OU=department\=1, CN=tester \<sam\>"

cheers,
chris


--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Escaped Issuer/Subject

Verhelst Wouter (Consultant)
On 11-04-17 10:56, [hidden email] wrote:
> Hi!
>
> Is it possible to get the distinguished name of issuer or subject in a
> escaped form out of the box?

Escaped for what? XML? SQL? HTML? Shell scripts? Maybe something else?

"Escaped form" isn't something that exists as a generic term. If you
want a string escaped, you're going to have to use some string escape
function of whatever it is you're trying to escape for; e.g., the
database or XML library you're using (you *are* using a library to
generate a structured format, are you?). Otherwise you're going down the
PHP "addslashes" pitfall, which won't help you nor anyone else.

Regards,

--
Wouter Verhelst
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Loading...