Reputation: 1
using openssl req -in test.csr -text -noout i get an error. When i copy paste in https://www.sslshopper.com/csr-decoder.html everything works... link to csr: https://1drv.ms/u/s!AgD8LyteY-eH6TzTDa1I8YHM_8XC?e=TEfRFb any one an idea what is wrong with the file?
Upvotes: 0
Views: 655
Reputation: 1039
your test.scr file is malformed
-----BEGIN CERTIFICATE REQUEST----- MIIC9zCCAd8CAQAwgbExCzAJBgNVBAYTAkJFMREwDwYDVQQIDAhGbGFuZGVyczER MA8...
needed
-----BEGIN CERTIFICATE REQUEST-----
MIIC9zCCAd8CAQAwgbExCzAJBgNVBAYTAkJFMREwDwYDVQQIDAhGbGFuZGVyczER
MA8GA1UEBwwIQnJ1c3NlbHMxGTAXBgNVBAoMEFZsYWFtc2UgT3ZlcmhlaWQxGDAW
...
below, a command to replace space with NL in your file.
sed -r 's/(-----BEGIN CERTIFICATE REQUEST-----|-----END CERTIFICATE REQUEST-----|\S*)\s/\1\n/g' test.csr | openssl req -text
Certificate Request:
Data:
Version: 1 (0x0)
Subject: C = BE, ST = Flanders, L = Brussels, O = Vlaamse Overheid, OU = Departement LNE, CN = ontwikkel.mili...
Upvotes: 2
Reputation: 1
thank you very much appreciated
i have about 10000 csr's to decode which were saved in a csv...
Upvotes: 0