Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Access Token using OAuth 1.0

Admin Admin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 2, 2021

I want to integrate jira into third party application using OAuth1.0.For this,I used public key value as SSL certificate value.I used the following code to generate RSA key,

private PrivateKey getPrivateKey(String privateKey) throws NoSuchAlgorithmException, InvalidKeySpecException {
byte[] privateBytes = Base64.decodeBase64(privateKey);
PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(privateBytes);
KeyFactory kf = KeyFactory.getInstance("RSA");
return kf.generatePrivate(keySpec);
}

but I get an error

java.security.InvalidKeyException: IOException : DER input, Integer tag error.

Could anyone help me to resolve this?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events