以åã«ã¯ã¾ã£ããã¨ããã£ãã®ã§ãç°¡åã«ã¾ã¨ãã¦ããã¾ãã OpenSSLã§RSAéµãçæããã¨ãã®ããã©ã«ãã®ãã©ã¼ãããã§ããPEMå½¢å¼ã¯ãJavaã®æ¨æºAPIã§ã¯èªã¿åããªããããDERå½¢å¼ã«å¤æãã¦ããå¿ è¦ãããã¾ãã OpenSSLã§å ¬ééµã»ç§å¯éµãçæãã # PEMå½¢å¼ã®ç§å¯éµãçæãã openssl genrsa -out private_key.pem 1024 # PKC8/DERå½¢å¼ã«å¤æãã openssl pkcs8 -in private_key.pem -topk8 -nocrypt -outform DER -out private_key.pk8 # DERå½¢å¼ã®å ¬ééµãçæãã openssl rsa -in private_key.pem -pubout -outform DER -out public_key.der Javaã§å ¬ééµã»ç§å¯éµãèªã¿è¾¼
{{#tags}}- {{label}}
{{/tags}}