Convert X.509 certificate from hex form to .cer format

前端 未结 2 1023
无人及你
无人及你 2021-01-22 11:04

How to convert X.509 certificate from a hex-dump form to .CER format? Additionally, should be blank space separators removed from hex dump first? Thanks.

2条回答
  •  情深已故
    2021-01-22 11:48

    You could use ASN.1 editor. It has a data converter that will convert HEX to PEM format of data. the source is also available so if you need to use it in code you can look how it is done.

    Or you could use certutil.exe using command

    certutil -decodehex c:\cert.hex c:\cert.cer
    

提交回复
热议问题