DESCRIPTION: Tools for extraction of OID translation BUILDING: openssl & openssl devel must be installed for utils cert and parser_openssl. cd ./tools make USAGE (example for russian language): 1. Process test-openssl.cer certificate on target platform. Example (Windows 10 RU): CertUtil.exe -asn test-openssl.cer > CertUtil-openssl-w10ru-cp1251.txt Example (Windows Server 2019 RU): CertUtil.exe -asn test-openssl.cer > CertUtil-openssl-ws19ru-cp1251.txt Example (Windows 7 RU): CertUtil.exe -asn test-openssl.cer > CertUtil-openssl-w7ru-cp1251.txt 2. Process output (depending on platform) Example: dos2unix CertUtil-openssl-w10ru-cp1251.txt iconv -f cp1251 -t UTF-8 CertUtil-openssl-w10ru-cp1251.txt > CertUtil-openssl-w10ru-UTF8.txt dos2unix CertUtil-openssl-ws19ru-cp1251.txt iconv -f cp1251 -t UTF-8 CertUtil-openssl-ws19ru-cp1251.txt > CertUtil-openssl-ws19ru-UTF8.txt dos2unix CertUtil-openssl-w7ru-cp1251.txt iconv -f cp1251 -t UTF-8 CertUtil-openssl-w7ru-cp1251.txt > CertUtil-openssl-w7ru-UTF8.txt 3. Parse output into .pot file (depending on platform) Example: parser_win eku-openssl.txt CertUtil-openssl-w10ru-UTF8.txt > CertUtil-openssl-w10ru.pot parser_win eku-openssl.txt CertUtil-openssl-ws19ru-UTF8.txt > CertUtil-openssl-ws19ru.pot parser_win eku-openssl.txt CertUtil-openssl-w7ru-UTF8.txt > CertUtil-openssl-w7ru.pot 4. Exec 1-3 for all certificates in certs/ directory 5. Join .pot files into single .pot file for each OS Example: potsum CertUtil-*-w10ru.pot > w10ru.pot potsum CertUtil-*-ws19ru.pot > ws19ru.pot potsum CertUtil-*-w7ru.pot > w7ru.pot 6. Join .pot files for different OSes into single .pot file. Syncronize translations from different sources if neccessary Example: potsum w10ru.pot ws19ru.pot w7ru.pot > ru.pot 7. Create .po file msginit -i ru.pot -o ru.po 8. Send final .po file for your language to project oidtdb. NOTE (translation of arbitrary OIDs) If you want get translation of arbitrary OIDs create .txt file with list of OIDs (see examples in eku directory). Create x509 test.cer with OIDs wrapped into 'extended key usage' x509v3 extension by command: make utils cert <your .txt file> Exec 1-6 for your OIDs set. NOTE (synchronization): Different versions of software and MS Windows OSes have as different OID sets as well different translation for the same OID. Syncronize translations from different sources and integrate .pot files into single .pot file.