可以使用java.security没有sun包或外部库生成CSR? [英] Possible to generate CSR using java.security without sun packages or external library?

查看:428
本文介绍了可以使用java.security没有sun包或外部库生成CSR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用Java代码生成证书签名请求,而不使用sun。*或com.sun。*软件包,而不使用外部库?如果我需要使用像BouncyCastle这样的库,我会研究它,但我迄今为止的所有搜索只显示使用sun包或BouncyCastle的例子,如果可能,我更喜欢坚持原始的API。

$ b

解决方案

如果我想要的是这样做,

我不认为这是可能的。接受这个,直到有人有更好的答案或者变成可能。



FWIW,我最后使用shell调用 keytool 这样做。


Is it possible to generate a certificate signing request using Java code without using sun.* or com.sun.* packages, and without using an external library? If I need to use a library like BouncyCastle I will look into it, but all my searching so far only shows examples which use sun packages or BouncyCastle and I'd prefer to stick to the raw API if possible.

And, what's the best approach to doing this if what I'm trying is not possible?

解决方案

I don't think this is possible. Accepting this until someone has a better answer or it becomes possible.

FWIW, I ended up using the shell to call keytool to do this.

这篇关于可以使用java.security没有sun包或外部库生成CSR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆