PKI.js is a pure JavaScript library implementing the formats that are used in PKI applications (signing, encryption, certificate requests, OCSP and TSP requests/responses). It is built on WebCrypto (Web Cryptography API) and requires no plug-ins.
Asunto:
C = AR
ST = Corrientes
L = Corrientes
postalCode =
street =
O = IT
OU = IT
CN = posberry.com
CN = www.posberry.com
emailAddress = soporte@posberry.com
Al separated by "\r\n" I think.
But in the file generated with that third party website, it outputs in a "single line" with plus signs, like:
Asunto: C = AR + ST = Corrientes + L = Corrientes...
Hi, seems that everything is fine with the library, just the Authorithy I'm sending the request don't accept this format, so a bug in their side, they only accept OpenSSL way.
Hi, I've seen this demo from a third party website: https://johannes.truschnigg.info/csr/
It works, but the format of the data isn't the one my target website can read.
This is an example certificate I create with node and an openssl library:
If you paste that on this website https://www.ssl247.es/support/tools/csr-decoder
It outputs
Al separated by "\r\n" I think.
But in the file generated with that third party website, it outputs in a "single line" with plus signs, like:
Asunto: C = AR + ST = Corrientes + L = Corrientes...
If I use your example it does the same: https://pkijs.org/examples/PKCS10_complex_example.html
It adds the fields with a plus sign:
C = RU + CN = Simple test (\D0\BF\D1\80\D0\BE\D1\81\D1\82\D0\BE\D0\B9 \D1\82\D0\B5\D1\81\D1\82)
How I can change, if possible any of the two examples to generate (in the browser without node) the desired format?
Thanks.