Are you trying to setup ec2 plugin with Jenkins CI on a Fedora 21 and getting some strange issues with bouncy castle, like the following:
Caused by: java.lang.NoSuchMethodError: org.bouncycastle.asn1.ASN1InputStream.readObject()Lorg/bouncycastle/asn1/DERObject;
This is a packaging issue, , my first suggestion is to download Jenkins and JDK manually and set them up, instead of using the prepackaged Jenkins and JDK 1.8 supplied by YUM,
if you insist on using the prepackaged YUM Jenkins, you may need to download couple of JARs, and put them in the right places,
# to to Jenkins Home, and EC2 plugin directory (my case on fedora):
cd /var/lib/jenkins/plugins/ec2/WEB-INF/lib
# mv old jars to /tmp directory
mv cprov* /tmp/
mv kix-* /tmp/
# download the correct JARs
sudo wget 'http://central.maven.org/maven2/org/bouncycastle/bcprov-jdk15on/1.47/b cprov-jdk15on-1.47.jar'
sudo wget 'http://repo1.maven.org/maven2/org/bouncycastle/bcpkix-jdk15on/1.47/bcp kix-jdk15on-1.47.jar'
# restart Jenkins
sudo systemctl restart jenkins