Using client certificate not in certificate store

前端 未结 4 1885
小鲜肉
小鲜肉 2021-01-30 23:45

I\'m trying to authenticate myself against WebService using my client certificate, but, for some reasons (I explain), I don\'t want to load certificate from store, rather read i

4条回答
  •  甜味超标
    2021-01-31 00:47

    Do you need a password for the certificate? If so, there is a field for it in the constructor.

    X509Certificate cert = new X509Certificate(PathToCertificate,YourPassword);
    

提交回复
热议问题