How to sign the Certificates with Elliptic curve private keys and ECDSA algorithm?

Dnyanesh

I am able to sign the certificates using bouncy castle with RSA private Keys and "SHA256withRSA " algorithm. I have used below link for reference to achieve this. Sign CSR using Bouncy Castle

Now I have my CAs with Elliptic Curve keys signed with ECDSA. Hence I want to sign the certificates with EC key and "SHA256withECDSA" algorithm by these CAs. However I am stuck at below snippet specific to RSA key, I want to use EC key.

ContentSigner sigGen = new BcRSAContentSignerBuilder(sigAlgId, digAlgId).build(privateKeyParam);

Please help me how we can achieve Certificate signing with ECDSA and EC keys

Dnyanesh

Below code used to sign the certificates with EC private keys

ContentSigner sigGen = new JcaContentSignerBuilder("SHA256withECDSA").build(new JcaPEMKeyConverter().getPrivateKey(PrivateKeyInfo));

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

ECDSA private and public keys - how to get SecretKey?

From Dev

Java - Create XML Digital Signature using ECDSA (Elliptic Curve)

From Java

Cannot sign a JWT using Elliptic Curve (EC) cryptography

From Dev

Reading elliptic curve private key from file with BouncyCastle

From Dev

OpenSSL Elliptic Curve reading private key in DER form

From Dev

Creation of ECDSA private key given curve and private exponent?

From Dev

How to sign using ECDSA in Javacard

From Dev

PKI Certificate Authority private a keys and certificates

From Dev

Plotting an elliptic curve in SageMath

From Dev

Elliptic curve brute forcing

From Dev

How to decipher the encrypted message using elliptic curve using JavaScript library?

From Dev

How can I best check these Elliptic Curve parameters are valid?

From Dev

Import elliptic curve Certificate and Private Key into Java Keystore using java.security.KeyStore

From Dev

Import elliptic curve Certificate and Private Key into Java Keystore using java.security.KeyStore

From Dev

How to store ECDSA private key in Go

From Java

Elliptic curve digital signature formats

From Dev

Elliptic curve threshold cryptography in node

From Dev

Point division Elliptic Curve in Java

From Dev

SSL certificates and keys in twisted python - missing private key client side?

From Dev

Difference between login with public/private keys and certificates in ssh

From Dev

Android OTA release on Nexus devices, which certificates and private keys?

From Dev

how to sign bytes using my own rsa private key using rs256 algorithm?

From Dev

ECDSA signature generation using secp256r1 curve and SHA256 algorithm - BouncyCastle

From Dev

ECDSA signature generation using secp256r1 curve and SHA256 algorithm - BouncyCastle

From Dev

How to generate an ECDSA sign without need of PEM key format in NodeJS?

From Dev

How to get range of finite field and coefficients used in elliptic curve cryptography from a certificate with OpenSSL?

From Dev

How to force a server to use a specific elliptic curve at the beginning of the handshake via openssl?

From Dev

Not sure how to generate an ECDSA signature, given a private key and a message

From Dev

How to generate ECDSA private and public key for DNSSEC using OpenSSL?

Related Related

  1. 1

    ECDSA private and public keys - how to get SecretKey?

  2. 2

    Java - Create XML Digital Signature using ECDSA (Elliptic Curve)

  3. 3

    Cannot sign a JWT using Elliptic Curve (EC) cryptography

  4. 4

    Reading elliptic curve private key from file with BouncyCastle

  5. 5

    OpenSSL Elliptic Curve reading private key in DER form

  6. 6

    Creation of ECDSA private key given curve and private exponent?

  7. 7

    How to sign using ECDSA in Javacard

  8. 8

    PKI Certificate Authority private a keys and certificates

  9. 9

    Plotting an elliptic curve in SageMath

  10. 10

    Elliptic curve brute forcing

  11. 11

    How to decipher the encrypted message using elliptic curve using JavaScript library?

  12. 12

    How can I best check these Elliptic Curve parameters are valid?

  13. 13

    Import elliptic curve Certificate and Private Key into Java Keystore using java.security.KeyStore

  14. 14

    Import elliptic curve Certificate and Private Key into Java Keystore using java.security.KeyStore

  15. 15

    How to store ECDSA private key in Go

  16. 16

    Elliptic curve digital signature formats

  17. 17

    Elliptic curve threshold cryptography in node

  18. 18

    Point division Elliptic Curve in Java

  19. 19

    SSL certificates and keys in twisted python - missing private key client side?

  20. 20

    Difference between login with public/private keys and certificates in ssh

  21. 21

    Android OTA release on Nexus devices, which certificates and private keys?

  22. 22

    how to sign bytes using my own rsa private key using rs256 algorithm?

  23. 23

    ECDSA signature generation using secp256r1 curve and SHA256 algorithm - BouncyCastle

  24. 24

    ECDSA signature generation using secp256r1 curve and SHA256 algorithm - BouncyCastle

  25. 25

    How to generate an ECDSA sign without need of PEM key format in NodeJS?

  26. 26

    How to get range of finite field and coefficients used in elliptic curve cryptography from a certificate with OpenSSL?

  27. 27

    How to force a server to use a specific elliptic curve at the beginning of the handshake via openssl?

  28. 28

    Not sure how to generate an ECDSA signature, given a private key and a message

  29. 29

    How to generate ECDSA private and public key for DNSSEC using OpenSSL?

HotTag

Archive