> +
> +      return res;
> +   }
> +
> +   private static KeyPair getKeyPair(String keyPath) throws IOException {
> +      BufferedReader br =
> +              new BufferedReader(new 
> InputStreamReader(JoyentBlobRequestSigner.class.getResourceAsStream(keyPath)));
> +
> +      Security.addProvider(new BouncyCastleProvider());
> +      PEMReader pemReader = new PEMReader(br);
> +      try {
> +         return (KeyPair) pemReader.readObject();
> +      } finally {
> +         pemReader.close();
> +      }
> +   }

I have to use SHA256WithRSAEncryption algorithm to sign requests. Using this 
approach I have NoSuchAlgorithmException error

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/30/files#r7245193

Reply via email to