Skip to content
Discussion options

You must be logged in to vote

Najprościej jest użyć OpenSSL (zastępując 1111111111 prawidłowym numerem NIP):

Generowanie CSR:

openssl req -newkey rsa:2048 -nodes -keyout key.pem -out certificate.csr -subj "/C=PL/ST=Mazowieckie/L=Warszawa/O=test-org/OU=IT/CN=test klient/emailAddress=kowalski@example.com/2.5.4.97=VATPL-1111111111"

Podpis typu self-sign

openssl x509 -signkey key.pem -in certificate.csr -req -days 3650 -out certificate.pem

Zapis do formatu p.12

openssl pkcs12 -export -out ertificate.p12 -inkey key.pem -in certificate.pem

Inny sposób to użycia narzędzia graficznego, np. XCA.

Można także wygenerować za pomocą programu Java: https://github.com/alapierre/crypto-util/blob/master/rsa-util/src/main/java/io/alapi…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@zyskjan
Comment options

Answer selected by karolbryzgiel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants