import com.eucalyptus.records.EventRecord;
import com.google.common.io.Files;
public class PEMFiles {
private static Logger LOG = Logger.getLogger( PEMFiles.class );
public static String fromCertificate( X509Certificate x509 ) {
<BUG>return B64.standard.encString( PEMFiles.getBytes( x509 ) );
</BUG>
}
public static X509Certificate toCertificate( String x509PemString ) {
<BUG>return PEMFiles.getCert( B64.standard.dec( x509PemString ) );
</BUG>
}

import com.eucalyptus.records.EventRecord;
import com.google.common.io.Files;
public class PEMFiles {
private static Logger LOG = Logger.getLogger( PEMFiles.class );
public static String fromCertificate( X509Certificate x509 ) {
return B64.url.encString( PEMFiles.getBytes( x509 ) );
}
public static X509Certificate toCertificate( String x509PemString ) {
return PEMFiles.getCert( B64.url.dec( x509PemString ) );
}
