0

ここで言及されているjsツールhttp://shop-js.sourceforge.net/crypto2.htmをテストしましたクライアント側で秘密鍵を使用してデータに署名します(javascript)

テスト用に自分で作成した pfx 証明書を使用して、pem に変換しましたが、なぜ機能しませんか? その長さは、サイトのサンプルよりも長いようです:

-----プライベートを始めるKEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCoC+KNsgr9zbje pKex2eyIwCjMJAFDeQXaHUU1e8ivuBhJ1TygvBgw/EjRMvNFjrebngdxpci1mXO/ iBuQ0bs4CE1lowLRO7O/amZ13WZVamPHSW1R5bhs+r7Atk3​​y+8lWc+EpxCPfxmyn nOeyKvX5zykHJMfKojJYdGZ5YYulWHSDuHOHDy1FcKTb4nBSK5rJ0+DpjnU7GlfK BV6MmLGbBsZxbxs5fYVf5pIbGg3CUQ5zAemEWTyXHwmpwRm48ruYsbWAPygdkwkc wIUM+fC/B8M8uKHojWJgEDVaUpY8AYxCFpUTTxY9IJJYOfuvi9ef0PJ0/nh0GdqE LihbjK/1AgMBAAECggEAL94SzqHkl58+Bc2JJxQYWGvEM0IeSgXzMModqLp10/fw kzd2aaKqkWmLpGuK+ElK67z8CddbcL8hRXGTyJC1b6SNx2HDr6396Yx5WyGRwMrp WR8FUMrK2eAi7eoAEjK+iy2++ZKxVVDEKop7RTkPj/ T+jtZfQs0o4iFl/zVV/eba F1k1RNE4KkYRe/EroIp2VbnhyMkfPqUSXSpQtZib9xjEqASHgyq/BElS1iQ8oxOl 8dipTgkR8SBEwU5v9XPrpeyp7V3aypd0dw1Yh0YrGufihNftQlr9u7OXX1qmJyMS sPgypdUFQ7mfnjvz7a5dQvt6wuUifvIqrifpo7kUgQKBgQDaa9ZLh6VKLVbvB5jy TSDADZRX8tsaQx49h0US6wn3tzOoh56kmTrEv/PNLEaC7KB7Fz6JqBvts8xRWEFA zzWD5y1KzFYU1y4oCSgAvBFGkQwey8WCArvEHnEldIxhWYi5U/IRynk4ipRGwcAB 6rS6UvDcB0wj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