简体   繁体   中英

How to Use .jks file in node js to submit request on https endpoint

I am looking to use.jks file node js code in similar fashion we do in java keystore. I found solution where people used jks to create.pem file then use them in code but. But we can not create pem file from jks as it contains multiple certificates so need to use it similar to java.

You can try with jks-js npm module for converting the JKS to PEM, to make http service calls from the NodeJS modules.

const keystore = jks.toPem(
fs.readFileSync('keystore.jks'),
'password'
);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM