PeculiarVentures / PKI.js

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.
http://pkijs.org
Other
1.25k stars 204 forks source link

Is there anything about generate a csr from private key ? #299

Closed smallMote closed 3 years ago

YuryStrozhevsky commented 3 years ago

This

smallMote commented 3 years ago

Thanks!! I looked at that case and implemented the same function, but my real purpose is how to use the private key to match the certificate. Can you give me some suggestions?Thank you very match!!!

YuryStrozhevsky commented 3 years ago

Not sure I understood your needs correctly, but in the example there is line of code where generates private key. About right way on "how to use private key with certificate" you could check this example.

smallMote commented 3 years ago

Not sure I understood your needs correctly, but in the example there is line of code where generates private key. About right way on "how to use private key with certificate" you could check this example.

Thank you very much !!! I've solved the problem I've had!(^▽^)